[cfe-commits] r173307 - /cfe/trunk/test/Preprocessor/disabled-cond-diags.c

Bill Wendling isanbard at gmail.com
Wed Jan 23 15:07:22 PST 2013


Author: void
Date: Wed Jan 23 17:07:21 2013
New Revision: 173307

URL: http://llvm.org/viewvc/llvm-project?rev=173307&view=rev
Log:
Don't check lines beginning with '#', since they could contain a path with the unexpected word in them.

Modified:
    cfe/trunk/test/Preprocessor/disabled-cond-diags.c

Modified: cfe/trunk/test/Preprocessor/disabled-cond-diags.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/disabled-cond-diags.c?rev=173307&r1=173306&r2=173307&view=diff
==============================================================================
--- cfe/trunk/test/Preprocessor/disabled-cond-diags.c (original)
+++ cfe/trunk/test/Preprocessor/disabled-cond-diags.c Wed Jan 23 17:07:21 2013
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -E %s 2>&1 | not grep "warning\|error"
+// RUN: %clang_cc1 -E %s 2>&1 | grep -v '^#' | not grep "warning\|error"
 
 #if 0
 





More information about the cfe-commits mailing list