r322065 - Avoid assumption that lit tests are writable (in a couple more places). NFC
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 9 01:32:53 PST 2018
Author: sammccall
Date: Tue Jan 9 01:32:53 2018
New Revision: 322065
URL: http://llvm.org/viewvc/llvm-project?rev=322065&view=rev
Log:
Avoid assumption that lit tests are writable (in a couple more places). NFC
Modified:
cfe/trunk/test/Modules/modify-module.m
cfe/trunk/test/PCH/modified-header-crash.c
Modified: cfe/trunk/test/Modules/modify-module.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/modify-module.m?rev=322065&r1=322064&r2=322065&view=diff
==============================================================================
--- cfe/trunk/test/Modules/modify-module.m (original)
+++ cfe/trunk/test/Modules/modify-module.m Tue Jan 9 01:32:53 2018
@@ -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
Modified: cfe/trunk/test/PCH/modified-header-crash.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/modified-header-crash.c?rev=322065&r1=322064&r2=322065&view=diff
==============================================================================
--- cfe/trunk/test/PCH/modified-header-crash.c (original)
+++ cfe/trunk/test/PCH/modified-header-crash.c Tue Jan 9 01:32:53 2018
@@ -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
More information about the cfe-commits
mailing list