diff options
Diffstat (limited to 'lld')
| -rw-r--r-- | lld/test/ELF/lto/cache.ll | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lld/test/ELF/lto/cache.ll b/lld/test/ELF/lto/cache.ll index deb11b61de2..55e3a3d6f6c 100644 --- a/lld/test/ELF/lto/cache.ll +++ b/lld/test/ELF/lto/cache.ll @@ -4,12 +4,13 @@ ; RUN: opt -module-hash -module-summary %p/Inputs/cache.ll -o %t2.o ; RUN: rm -Rf %t.cache && mkdir %t.cache -; Create a file that will be removed by cache pruning due to age. -; RUN: touch -t 197001011200 %t.cache/foo +; Create two files that would be removed by cache pruning due to age. +; We should only remove files matching the pattern "llvmcache-*". +; RUN: touch -t 197001011200 %t.cache/llvmcache-foo %t.cache/foo ; RUN: ld.lld --thinlto-cache-dir=%t.cache --thinlto-cache-policy prune_after=1h -o %t3 %t2.o %t.o -; Two cached objects, plus a timestamp file, minus the file we removed. -; RUN: ls %t.cache | count 3 +; Two cached objects, plus a timestamp file and "foo", minus the file we removed. +; RUN: ls %t.cache | count 4 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" |

