[llvm] r318520 - [gold] Fix broken thin LTO cache test NFC
Andrew Ng via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 17 04:00:57 PST 2017
Author: anng
Date: Fri Nov 17 04:00:57 2017
New Revision: 318520
URL: http://llvm.org/viewvc/llvm-project?rev=318520&view=rev
Log:
[gold] Fix broken thin LTO cache test NFC
Fix test as it is assuming that the cache pruning is always being
performed by default. Explicitly set prune interval to 0s to ensure
pruning is always performed.
Modified:
llvm/trunk/test/tools/gold/X86/cache.ll
Modified: llvm/trunk/test/tools/gold/X86/cache.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/cache.ll?rev=318520&r1=318519&r2=318520&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/cache.ll (original)
+++ llvm/trunk/test/tools/gold/X86/cache.ll Fri Nov 17 04:00:57 2017
@@ -32,7 +32,7 @@
; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so \
; RUN: --plugin-opt=thinlto \
; RUN: --plugin-opt=cache-dir=%t.cache \
-; RUN: --plugin-opt=cache-policy=prune_after=1h \
+; RUN: --plugin-opt=cache-policy=prune_after=1h:prune_interval=0s \
; RUN: -o %t3.o %t2.o %t.o
; Two cached objects, plus a timestamp file and "foo", minus the file we removed.
@@ -46,7 +46,7 @@
; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so \
; RUN: --plugin-opt=thinlto \
; RUN: --plugin-opt=cache-dir=%t.cache \
-; RUN: --plugin-opt=cache-policy=cache_size_bytes=128k \
+; RUN: --plugin-opt=cache-policy=cache_size_bytes=128k:prune_interval=0s \
; RUN: -o %t3.o %t2.o %t.o
; RUN: ls %t.cache | count 5
@@ -55,7 +55,7 @@
; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so \
; RUN: --plugin-opt=thinlto \
; RUN: --plugin-opt=cache-dir=%t.cache \
-; RUN: --plugin-opt=cache-policy=cache_size_bytes=32k \
+; RUN: --plugin-opt=cache-policy=cache_size_bytes=32k:prune_interval=0s \
; RUN: -o %t3.o %t2.o %t.o
; RUN: ls %t.cache | count 4
More information about the llvm-commits
mailing list