Stabilize llvm/test/Object/archive-update.test a bit.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 7 Dec 2015 23:15:57 +0000 (23:15 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 7 Dec 2015 23:15:57 +0000 (23:15 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254965 91177308-0d34-0410-b5e6-96231b3b80d8

test/Object/archive-update.test

index ef1a71f60f435ff6062878477db69ed51152d53e..fd1ea4113c39df95b223b0c036026ca2ef684777 100644 (file)
@@ -7,12 +7,13 @@ Create a file named evenlen that is newer than the evenlen on the source dir.
 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