summaryrefslogtreecommitdiff
path: root/test/Driver/cl-pch-errorhandling.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2016-03-02 23:29:29 +0000
committerNico Weber <nicolasweber@gmx.de>2016-03-02 23:29:29 +0000
commit3412720b802c70e8a7c64f64f84d4c39730a24d2 (patch)
tree57ce6b6e0b16a06506240c259c213a8ab9c7686d /test/Driver/cl-pch-errorhandling.cpp
parentf2ba1719aef2eb3098009278c8f8430ad66261ec (diff)
downloadclang-3412720b802c70e8a7c64f64f84d4c39730a24d2.tar.gz
clang-cl pch test: Instead of copying the input, use /Fp to not write into the test directory.
Also fix a bug with /Fp and absolute paths uncovered by this. Follow-up to r262487. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@262541 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/cl-pch-errorhandling.cpp')
-rw-r--r--test/Driver/cl-pch-errorhandling.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/Driver/cl-pch-errorhandling.cpp b/test/Driver/cl-pch-errorhandling.cpp
index 41fcfbef0f..ec06bb5240 100644
--- a/test/Driver/cl-pch-errorhandling.cpp
+++ b/test/Driver/cl-pch-errorhandling.cpp
@@ -6,8 +6,7 @@
// code generation, which makes this test require an x86 backend.
// REQUIRES: x86-registered-target
-// 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: not %clang_cl -internal-enable-pch -Werror /Yc%S/Inputs/pchfile.h /FI%S/Inputs/pchfile.h /Fp%t.pch /c -DERR_HEADER -- %s 2>&1 \
// RUN: | FileCheck %s
// CHECK: nope1