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.

llvm-svn: 254965
This commit is contained in:
NAKAMURA Takumi 2015-12-07 23:15:57 +00:00
parent 4a798f2c54
commit b4398d8585
1 changed files with 2 additions and 1 deletions

View 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