diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2014-02-12 11:50:37 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2014-02-12 11:50:37 +0000 |
commit | e7f8cba892635db6b2be0a8c566075ec5f6767c8 (patch) | |
tree | db176a7a660948528da56310e7eb209b6178b7c3 /clang/test/Modules/fmodules-validate-once-per-build-session.c | |
parent | 04d39d7a2ddb5ebaf35f1ce3acf11dd1730fc548 (diff) | |
download | bcm5719-llvm-e7f8cba892635db6b2be0a8c566075ec5f6767c8.tar.gz bcm5719-llvm-e7f8cba892635db6b2be0a8c566075ec5f6767c8.zip |
Don't use find | xargs in test/Modules/fmodules-validate-once-per-build-session.c
With -fdisable-module-hash, we can implement this with a simple 'cp'.
llvm-svn: 201231
Diffstat (limited to 'clang/test/Modules/fmodules-validate-once-per-build-session.c')
-rw-r--r-- | clang/test/Modules/fmodules-validate-once-per-build-session.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Modules/fmodules-validate-once-per-build-session.c b/clang/test/Modules/fmodules-validate-once-per-build-session.c index aa243f0d365..346d5a72c3e 100644 --- a/clang/test/Modules/fmodules-validate-once-per-build-session.c +++ b/clang/test/Modules/fmodules-validate-once-per-build-session.c @@ -20,7 +20,7 @@ // Use it, and make sure that we did not recompile it. // RUN: %clang_cc1 -cc1 -fmodules -fdisable-module-hash -fmodules-cache-path=%t/modules-cache -fsyntax-only -I %t/Inputs -fbuild-session-timestamp=1390000000 -fmodules-validate-once-per-build-session %s // RUN: ls -R %t/modules-cache | grep Foo.pcm.timestamp -// RUN: find %/t/modules-cache -name Foo.pcm | xargs -I {} cp {} %t/modules-to-compare/Foo-after.pcm +// RUN: cp %t/modules-cache/Foo.pcm %t/modules-to-compare/Foo-after.pcm // RUN: diff %t/modules-to-compare/Foo-before.pcm %t/modules-to-compare/Foo-after.pcm @@ -32,7 +32,7 @@ // Use the module, and make sure that we did not recompile it, even though the sources changed. // RUN: %clang_cc1 -cc1 -fmodules -fdisable-module-hash -fmodules-cache-path=%t/modules-cache -fsyntax-only -I %t/Inputs -fbuild-session-timestamp=1390000000 -fmodules-validate-once-per-build-session %s // RUN: ls -R %t/modules-cache | grep Foo.pcm.timestamp -// RUN: find %/t/modules-cache -name Foo.pcm | xargs -I {} cp {} %t/modules-to-compare/Foo-after.pcm +// RUN: cp %t/modules-cache/Foo.pcm %t/modules-to-compare/Foo-after.pcm // RUN: diff %t/modules-to-compare/Foo-before.pcm %t/modules-to-compare/Foo-after.pcm @@ -40,6 +40,6 @@ // Recompile the module if the today's date is before 01 January 2030. // RUN: %clang_cc1 -cc1 -fmodules -fdisable-module-hash -fmodules-cache-path=%t/modules-cache -fsyntax-only -I %t/Inputs -fbuild-session-timestamp=1893456000 -fmodules-validate-once-per-build-session %s // RUN: ls -R %t/modules-cache | grep Foo.pcm.timestamp -// RUN: find %/t/modules-cache -name Foo.pcm | xargs -I {} cp {} %t/modules-to-compare/Foo-after.pcm +// RUN: cp %t/modules-cache/Foo.pcm %t/modules-to-compare/Foo-after.pcm // RUN: not diff %t/modules-to-compare/Foo-before.pcm %t/modules-to-compare/Foo-after.pcm |