r262487 - test/Driver/cl-pch-errorhandling.cpp: Copy input file to a temporary

Daniel Jasper via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 2 06:27:00 PST 2016


Author: djasper
Date: Wed Mar  2 08:26:59 2016
New Revision: 262487

URL: http://llvm.org/viewvc/llvm-project?rev=262487&view=rev
Log:
test/Driver/cl-pch-errorhandling.cpp: Copy input file to a temporary
location as we cannot assume the location of the input file to be
writable.

Modified:
    cfe/trunk/test/Driver/cl-pch-errorhandling.cpp

Modified: cfe/trunk/test/Driver/cl-pch-errorhandling.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/cl-pch-errorhandling.cpp?rev=262487&r1=262486&r2=262487&view=diff
==============================================================================
--- cfe/trunk/test/Driver/cl-pch-errorhandling.cpp (original)
+++ cfe/trunk/test/Driver/cl-pch-errorhandling.cpp Wed Mar  2 08:26:59 2016
@@ -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




More information about the cfe-commits mailing list