]> granicus.if.org Git - clang/commitdiff
Avoid assumption that lit tests are writable (in a couple more places). NFC
authorSam McCall <sam.mccall@gmail.com>
Tue, 9 Jan 2018 09:32:53 +0000 (09:32 +0000)
committerSam McCall <sam.mccall@gmail.com>
Tue, 9 Jan 2018 09:32:53 +0000 (09:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322065 91177308-0d34-0410-b5e6-96231b3b80d8

test/Modules/modify-module.m
test/PCH/modified-header-crash.c

index f9a70b25c877768c4dfa42f6e5bf431588bed316..d59a4799104ff1ae7e557a678e5ef7c266f9da79 100644 (file)
@@ -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
index 4c21a8c2b82597fc8898be8602552286e8a34efd..39b2530a32f28fd890184a3c90d3a2bf0bc9a75c 100644 (file)
@@ -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