Avoid assumption that lit tests are writable (in a couple more places). NFC

llvm-svn: 322065
This commit is contained in:
Sam McCall 2018-01-09 09:32:53 +00:00
parent c94f3eb0cf
commit 94af5214a7
2 changed files with 4 additions and 4 deletions

View 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

View 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