diff options
| author | Sam McCall <sam.mccall@gmail.com> | 2018-01-09 09:32:53 +0000 |
|---|---|---|
| committer | Sam McCall <sam.mccall@gmail.com> | 2018-01-09 09:32:53 +0000 |
| commit | 94af5214a784b6b03585fcfdf756cc64a26943eb (patch) | |
| tree | 579cddf3932f3570eeee7ed40ebea28e8657245c | |
| parent | c94f3eb0cf54552ec76892c4af3ca1c35e5924ca (diff) | |
| download | bcm5719-llvm-94af5214a784b6b03585fcfdf756cc64a26943eb.tar.gz bcm5719-llvm-94af5214a784b6b03585fcfdf756cc64a26943eb.zip | |
Avoid assumption that lit tests are writable (in a couple more places). NFC
llvm-svn: 322065
| -rw-r--r-- | clang/test/Modules/modify-module.m | 6 | ||||
| -rw-r--r-- | clang/test/PCH/modified-header-crash.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/Modules/modify-module.m b/clang/test/Modules/modify-module.m index f9a70b25c87..d59a4799104 100644 --- a/clang/test/Modules/modify-module.m +++ b/clang/test/Modules/modify-module.m @@ -3,9 +3,9 @@ // RUN: rm -rf %t // RUN: mkdir -p %t/include -// RUN: cp %S/Inputs/Modified/A.h %t/include -// RUN: cp %S/Inputs/Modified/B.h %t/include -// RUN: cp %S/Inputs/Modified/module.map %t/include +// RUN: cat %S/Inputs/Modified/A.h > %t/include/A.h +// RUN: cat %S/Inputs/Modified/B.h > %t/include/B.h +// RUN: cat %S/Inputs/Modified/module.map > %t/include/module.map // RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t/cache -fmodules -fimplicit-module-maps -I %t/include %s -verify // RUN: echo '' >> %t/include/B.h // RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t/cache -fmodules -fimplicit-module-maps -I %t/include %s -verify diff --git a/clang/test/PCH/modified-header-crash.c b/clang/test/PCH/modified-header-crash.c index 4c21a8c2b82..39b2530a32f 100644 --- a/clang/test/PCH/modified-header-crash.c +++ b/clang/test/PCH/modified-header-crash.c @@ -1,6 +1,6 @@ // Don't crash. -// RUN: cp %S/modified-header-crash.h %t.h +// RUN: cat %S/modified-header-crash.h > %t.h // RUN: %clang_cc1 -DCAKE -x c-header %t.h -emit-pch -o %t // RUN: echo 'int foobar;' >> %t.h // RUN: not %clang_cc1 %s -include-pch %t -fsyntax-only |

