summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-08-17 07:13:32 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-08-17 07:13:32 +0000
commite75ee0f0c8f8cf603c7894f9442f81faf11c2ff6 (patch)
tree9ff53065671bce8db52fea63c808f9494098b614 /clang/test/Modules
parent88edc8243d6d0c4f091d9f99e8916b0b52b456a2 (diff)
downloadbcm5719-llvm-e75ee0f0c8f8cf603c7894f9442f81faf11c2ff6.tar.gz
bcm5719-llvm-e75ee0f0c8f8cf603c7894f9442f81faf11c2ff6.zip
[modules] When explicitly building a module file, don't include timestamps in
the produced pcm file for stable file creation across distributed build systems. llvm-svn: 245199
Diffstat (limited to 'clang/test/Modules')
-rw-r--r--clang/test/Modules/explicit-build-missing-files.cpp4
-rw-r--r--clang/test/Modules/module-map-path-hash.cpp2
2 files changed, 5 insertions, 1 deletions
diff --git a/clang/test/Modules/explicit-build-missing-files.cpp b/clang/test/Modules/explicit-build-missing-files.cpp
index ff79a116e6b..b2730e4f227 100644
--- a/clang/test/Modules/explicit-build-missing-files.cpp
+++ b/clang/test/Modules/explicit-build-missing-files.cpp
@@ -21,6 +21,10 @@
// RUN: rm %t/other.modulemap
// RUN: %clang_cc1 -fmodules -I %t -fmodule-file=%t/a.pcm %s
// RUN: not %clang_cc1 -fmodules -I %t -fmodule-file=%t/a.pcm %s -DERRORS 2>&1 | FileCheck %s
+// RUN: sleep 1
+// RUN: touch %t/a.h
+// RUN: %clang_cc1 -fmodules -I %t -fmodule-file=%t/a.pcm %s
+// RUN: not %clang_cc1 -fmodules -I %t -fmodule-file=%t/a.pcm %s -DERRORS 2>&1 | FileCheck %s
// RUN: rm %t/b.h
// RUN: %clang_cc1 -fmodules -I %t -fmodule-file=%t/a.pcm %s
// RUN: not %clang_cc1 -fmodules -I %t -fmodule-file=%t/a.pcm %s -DERRORS 2>&1 | FileCheck %s --check-prefix=MISSING-B
diff --git a/clang/test/Modules/module-map-path-hash.cpp b/clang/test/Modules/module-map-path-hash.cpp
index 620e428a2f0..ccfa96ebd25 100644
--- a/clang/test/Modules/module-map-path-hash.cpp
+++ b/clang/test/Modules/module-map-path-hash.cpp
@@ -1,4 +1,4 @@
-// rm -rf %t
+// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x c++ -Rmodule-build -I%S/Inputs/module-map-path-hash -fmodules-cache-path=%t -fsyntax-only %s
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x c++ -Rmodule-build -I%S/Inputs//module-map-path-hash -fmodules-cache-path=%t -fsyntax-only %s 2>&1 | FileCheck -allow-empty %s
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x c++ -Rmodule-build -I%S/Inputs/./module-map-path-hash -fmodules-cache-path=%t -fsyntax-only %s 2>&1 | FileCheck -allow-empty %s
OpenPOWER on IntegriCloud