From: Sam McCall Date: Tue, 9 Jan 2018 09:32:53 +0000 (+0000) Subject: Avoid assumption that lit tests are writable (in a couple more places). NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87bfdf90ba9e94ecc89cc413013597c6fab9b0c8;p=clang Avoid assumption that lit tests are writable (in a couple more places). NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322065 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Modules/modify-module.m b/test/Modules/modify-module.m index f9a70b25c8..d59a479910 100644 --- a/test/Modules/modify-module.m +++ b/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/test/PCH/modified-header-crash.c b/test/PCH/modified-header-crash.c index 4c21a8c2b8..39b2530a32 100644 --- a/test/PCH/modified-header-crash.c +++ b/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