aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2011-04-28 00:23:49 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2011-04-28 00:23:49 +0000
commitb93962532c64bb8d91bb9b7616a0be2f2d7d6300 (patch)
treead2463db4677ede334bac20018d7048949fdc580
parent21ff2e516b0e0bc8c1dbf965cb3d44bac3c64330 (diff)
Fix modified-header-crash.c for read-only source trees
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130359 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/PCH/modified-header-crash.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/PCH/modified-header-crash.c b/test/PCH/modified-header-crash.c
index cb403f0184..d46f97636d 100644
--- a/test/PCH/modified-header-crash.c
+++ b/test/PCH/modified-header-crash.c
@@ -1,7 +1,8 @@
// Don't crash.
-// RUN: %clang_cc1 -DCAKE -x c-header %S/modified-header-crash.h -emit-pch -o %t
-// RUN: touch %S/modified-header-crash.h
+// RUN: cp %S/modified-header-crash.h %t.h
+// RUN: %clang_cc1 -DCAKE -x c-header %t.h -emit-pch -o %t
+// RUN: echo >> %t.h
// RUN: not %clang_cc1 %s -include-pch %t -fsyntax-only
// FIXME: On Windows we don't detect that the header was modified ?