From: Chris Lattner Date: Fri, 10 Apr 2009 16:51:32 +0000 (+0000) Subject: use doug's new %S thing to make this work when run from different locations. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4fa37accaea4b1f2cf675c28375d7dd3500c715c;p=clang 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 --- 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