[llvm] r254965 - Stabilize llvm/test/Object/archive-update.test a bit.
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 7 15:15:57 PST 2015
Author: chapuni
Date: Mon Dec 7 17:15:57 2015
New Revision: 254965
URL: http://llvm.org/viewvc/llvm-project?rev=254965&view=rev
Log:
Stabilize llvm/test/Object/archive-update.test a bit.
A manipulation (in this case, mkdir) can make slack between creating and touching %t.older/evenlen.
I would make this rewrote with python if this were still unstable.
Modified:
llvm/trunk/test/Object/archive-update.test
Modified: llvm/trunk/test/Object/archive-update.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/archive-update.test?rev=254965&r1=254964&r2=254965&view=diff
==============================================================================
--- llvm/trunk/test/Object/archive-update.test (original)
+++ llvm/trunk/test/Object/archive-update.test Mon Dec 7 17:15:57 2015
@@ -7,12 +7,13 @@ Create a file named evenlen that is newe
RUN: mkdir -p %t.older
RUN: echo older > %t.older/evenlen
+RUN: mkdir -p %t.newer
+
Either the shell supports the 'touch' command with a flag to manually set the
mtime or we sleep for over two seconds so that the mtime is definitely
observable.
RUN: touch -m -t 200001010000 %t.older/evenlen || sleep 2.1
-RUN: mkdir -p %t.newer
RUN: echo newer > %t.newer/evenlen
RUN: touch %t.newer/evenlen
More information about the llvm-commits
mailing list