[cfe-commits] r48636 - in /cfe/trunk/test/Preprocessor: ifdef-recover.c includeexpand.c

Sam Bishop sam at bishop.dhs.org
Fri Mar 21 00:02:04 PDT 2008


Author: sbishop
Date: Fri Mar 21 02:02:04 2008
New Revision: 48636

URL: http://llvm.org/viewvc/llvm-project?rev=48636&view=rev
Log:
Use the -E option when invoking clang.  Only the preprocessor is
required to perform this test.

Modified:
    cfe/trunk/test/Preprocessor/ifdef-recover.c
    cfe/trunk/test/Preprocessor/includeexpand.c

Modified: cfe/trunk/test/Preprocessor/ifdef-recover.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/ifdef-recover.c?rev=48636&r1=48635&r2=48636&view=diff

==============================================================================
--- cfe/trunk/test/Preprocessor/ifdef-recover.c (original)
+++ cfe/trunk/test/Preprocessor/ifdef-recover.c Fri Mar 21 02:02:04 2008
@@ -1,4 +1,4 @@
-/* RUN: clang %s 2>&1 | grep error: | count 3
+/* RUN: clang -E %s 2>&1 >/dev/null | grep error: | count 3
  */
 
 #ifdef

Modified: cfe/trunk/test/Preprocessor/includeexpand.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/includeexpand.c?rev=48636&r1=48635&r2=48636&view=diff

==============================================================================
--- cfe/trunk/test/Preprocessor/includeexpand.c (original)
+++ cfe/trunk/test/Preprocessor/includeexpand.c Fri Mar 21 02:02:04 2008
@@ -1,4 +1,4 @@
-// RUN: clang %s -fno-caret-diagnostics 2>&1 | grep 'file successfully included' | wc -l | grep 3
+// RUN: clang -E %s -fno-caret-diagnostics 2>&1 >/dev/null | grep 'file successfully included' | count 3
 
 // XX expands to nothing.
 #define XX





More information about the cfe-commits mailing list