From: Daniel Jasper Date: Wed, 2 Mar 2016 14:26:59 +0000 (+0000) Subject: test/Driver/cl-pch-errorhandling.cpp: Copy input file to a temporary X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98b045b5e6e7ec686e36ac700d5922268d683c8a;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@262487 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/cl-pch-errorhandling.cpp b/test/Driver/cl-pch-errorhandling.cpp index 1d239c1268..41fcfbef0f 100644 --- a/test/Driver/cl-pch-errorhandling.cpp +++ b/test/Driver/cl-pch-errorhandling.cpp @@ -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