summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-03-25 21:27:57 +0000
committerDouglas Gregor <dgregor@apple.com>2013-03-25 21:27:57 +0000
commit1f37dddd57e12b008a47beea22bc330868a49481 (patch)
tree1a58ad301310665882d6ad6e70e0960d47d45c0b /clang/test/Modules
parent3820184a8d63d5be1fd6465401955d8d9a3be7a1 (diff)
downloadbcm5719-llvm-1f37dddd57e12b008a47beea22bc330868a49481.tar.gz
bcm5719-llvm-1f37dddd57e12b008a47beea22bc330868a49481.zip
Use 'touch -t', which both BSD and Linux support.
llvm-svn: 177921
Diffstat (limited to 'clang/test/Modules')
-rw-r--r--clang/test/Modules/prune.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/Modules/prune.m b/clang/test/Modules/prune.m
index 2e2c2eee775..062156ec7c6 100644
--- a/clang/test/Modules/prune.m
+++ b/clang/test/Modules/prune.m
@@ -19,7 +19,7 @@
// Set the timestamp back more than two days. We should try to prune,
// but nothing gets pruned because the module files are new enough.
-// RUN: touch -m -a -A -481200 %t/modules.timestamp
+// RUN: touch -m -a -t 201101010000 %t/modules.timestamp
// RUN: %clang_cc1 -fmodules -F %S/Inputs -fmodules-cache-path=%t -fmodules -fmodules-prune-interval=172800 -fmodules-prune-after=345600 %s -verify
// RUN: ls %t | grep modules.timestamp
// RUN: ls -R %t | grep ^Module.pcm
@@ -28,7 +28,7 @@
// Set the DependsOnModule access time back more than four days.
// This shouldn't prune anything, because the timestamp has been updated, so
// the pruning mechanism won't fire.
-// RUN: touch -a -A -961200 `find /Volumes/Data/dgregor/Projects/llvm-build-xcode/tools/clang/test/Modules/Output/prune.m.tmp -name DependsOnModule.pcm`
+// RUN: touch -a -t 201101010000 `find /Volumes/Data/dgregor/Projects/llvm-build-xcode/tools/clang/test/Modules/Output/prune.m.tmp -name DependsOnModule.pcm`
// RUN: %clang_cc1 -fmodules -F %S/Inputs -fmodules-cache-path=%t -fmodules -fmodules-prune-interval=172800 -fmodules-prune-after=345600 %s -verify
// RUN: ls %t | grep modules.timestamp
// RUN: ls -R %t | grep ^Module.pcm
@@ -36,8 +36,8 @@
// Set both timestamp and DependsOnModule.pcm back beyond the cutoff.
// This should trigger pruning, which will remove DependsOnModule but not Module.
-// RUN: touch -m -a -A -481200 %t/modules.timestamp
-// RUN: touch -a -A -961200 `find /Volumes/Data/dgregor/Projects/llvm-build-xcode/tools/clang/test/Modules/Output/prune.m.tmp -name DependsOnModule.pcm`
+// RUN: touch -m -a -t 201101010000 %t/modules.timestamp
+// RUN: touch -a -t 201101010000 `find /Volumes/Data/dgregor/Projects/llvm-build-xcode/tools/clang/test/Modules/Output/prune.m.tmp -name DependsOnModule.pcm`
// RUN: %clang_cc1 -fmodules -F %S/Inputs -fmodules-cache-path=%t -fmodules -fmodules-prune-interval=172800 -fmodules-prune-after=345600 %s -verify
// RUN: ls %t | grep modules.timestamp
// RUN: ls -R %t | grep ^Module.pcm
OpenPOWER on IntegriCloud