diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-10 16:51:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-10 16:51:32 +0000 |
commit | 4fa37accaea4b1f2cf675c28375d7dd3500c715c (patch) | |
tree | 3c6fedb0bbb4c3e40fbc535b66410bc6abfd16ad /test/Preprocessor | |
parent | 871eb7c891f514562b354f09d75793bee1a33186 (diff) |
use doug's new %S thing to make this work when run from different locations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68788 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor')
-rw-r--r-- | test/Preprocessor/include-directive3.c | 2 | ||||
-rw-r--r-- | test/Preprocessor/include-macros.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/Preprocessor/include-directive3.c b/test/Preprocessor/include-directive3.c index 2541301b93..e5b7a940c6 100644 --- a/test/Preprocessor/include-directive3.c +++ b/test/Preprocessor/include-directive3.c @@ -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 diff --git a/test/Preprocessor/include-macros.c b/test/Preprocessor/include-macros.c index c085e0c07e..d64ee5e3e6 100644 --- a/test/Preprocessor/include-macros.c +++ b/test/Preprocessor/include-macros.c @@ -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 |