[lld] r298064 - [ELF] - Fixed cache.ll testcase.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 17 03:32:11 PDT 2017


Author: grimar
Date: Fri Mar 17 05:32:10 2017
New Revision: 298064

URL: http://llvm.org/viewvc/llvm-project?rev=298064&view=rev
Log:
[ELF] - Fixed cache.ll testcase.

It failed for me under windows,
touch reported invalid date format.

Seems related to 12h/24h format, though
I don't understant why 197001010200 does not work, 
but 197001010300 works, I see no logic here.

Changed to 197001011200.


Modified:
    lld/trunk/test/ELF/lto/cache.ll

Modified: lld/trunk/test/ELF/lto/cache.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/cache.ll?rev=298064&r1=298063&r2=298064&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/cache.ll (original)
+++ lld/trunk/test/ELF/lto/cache.ll Fri Mar 17 05:32:10 2017
@@ -5,7 +5,7 @@
 
 ; RUN: rm -Rf %t.cache && mkdir %t.cache
 ; Create a file that will be removed by cache pruning due to age.
-; RUN: touch -t 197001010000 %t.cache/foo
+; RUN: touch -t 197001011200 %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.




More information about the llvm-commits mailing list