]> granicus.if.org Git - clang/commitdiff
use doug's new %S thing to make this work when run from different locations.
authorChris Lattner <sabre@nondot.org>
Fri, 10 Apr 2009 16:51:32 +0000 (16:51 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 10 Apr 2009 16:51:32 +0000 (16:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68788 91177308-0d34-0410-b5e6-96231b3b80d8

test/Preprocessor/include-directive3.c
test/Preprocessor/include-macros.c

index 2541301b9321e0f4ea2adfc3877fe949eecd2847..e5b7a940c6cb4ea5de9b1f5f63721a0a7b61857b 100644 (file)
@@ -1,3 +1,3 @@
-// RUN: clang-cc -include file_to_include.h -E %s -fno-caret-diagnostics 2>&1 >/dev/null | grep 'file successfully included' | count 1
+// RUN: clang-cc -include %S/file_to_include.h -E %s -fno-caret-diagnostics 2>&1 >/dev/null | grep 'file successfully included' | count 1
 // PR3464
 
index c085e0c07e70cb9d8ecc719508834e6d6c442817..d64ee5e3e6d9c50453f6b0358db1bac18b6c8d35 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -E -Dtest=FOO -imacros pr2086.h %s | grep 'HERE: test'
+// RUN: clang-cc -E -Dtest=FOO -imacros %S/pr2086.h %s | grep 'HERE: test'
 
 // This should not be expanded into FOO because pr2086.h undefs 'test'.
 HERE: test