]> granicus.if.org Git - clang/commitdiff
test/Driver/cl-pch-errorhandling.cpp: Copy input file to a temporary
authorDaniel Jasper <djasper@google.com>
Wed, 2 Mar 2016 14:26:59 +0000 (14:26 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 2 Mar 2016 14:26:59 +0000 (14:26 +0000)
location as we cannot assume the location of the input file to be
writable.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@262487 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/cl-pch-errorhandling.cpp

index 1d239c1268dd74a2c39c0a2f2fa910c975bde3fe..41fcfbef0f34b9c4c697920965cc036d0b0d266d 100644 (file)
@@ -6,7 +6,8 @@
 // code generation, which makes this test require an x86 backend.
 // REQUIRES: x86-registered-target
 
-// RUN: not %clang_cl -internal-enable-pch -Werror /Yc%S/Inputs/pchfile.h /FI%S/Inputs/pchfile.h /c -DERR_HEADER -- %s 2>&1 \
+// RUN: cp %S/Inputs/pchfile.h %t.h
+// RUN: not %clang_cl -internal-enable-pch -Werror /Yc%t.h /FI%t.h /c -DERR_HEADER -- %s 2>&1 \
 // RUN:   | FileCheck %s
 
 // CHECK: nope1