[cfe-commits] r68788 - in /cfe/trunk/test/Preprocessor: include-directive3.c include-macros.c

Chris Lattner sabre at nondot.org
Fri Apr 10 09:51:32 PDT 2009


Author: lattner
Date: Fri Apr 10 11:51:32 2009
New Revision: 68788

URL: http://llvm.org/viewvc/llvm-project?rev=68788&view=rev
Log:
use doug's new %S thing to make this work when run from different locations.

Modified:
    cfe/trunk/test/Preprocessor/include-directive3.c
    cfe/trunk/test/Preprocessor/include-macros.c

Modified: cfe/trunk/test/Preprocessor/include-directive3.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/include-directive3.c?rev=68788&r1=68787&r2=68788&view=diff

==============================================================================
--- cfe/trunk/test/Preprocessor/include-directive3.c (original)
+++ cfe/trunk/test/Preprocessor/include-directive3.c Fri Apr 10 11:51:32 2009
@@ -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
 

Modified: cfe/trunk/test/Preprocessor/include-macros.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/include-macros.c?rev=68788&r1=68787&r2=68788&view=diff

==============================================================================
--- cfe/trunk/test/Preprocessor/include-macros.c (original)
+++ cfe/trunk/test/Preprocessor/include-macros.c Fri Apr 10 11:51:32 2009
@@ -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





More information about the cfe-commits mailing list