[cfe-commits] r173582 - Migrate tests to -verify
Dmitri Gribenko
gribozavr at gmail.com
Sat Jan 26 09:11:39 PST 2013
Author: gribozavr
Date: Sat Jan 26 11:11:39 2013
New Revision: 173582
URL: http://llvm.org/viewvc/llvm-project?rev=173582&view=rev
Log:
Migrate tests to -verify
Modified:
cfe/trunk/test/Lexer/badstring_in_if0.c
cfe/trunk/test/Lexer/unknown-char.c
cfe/trunk/test/Preprocessor/disabled-cond-diags.c
Modified: cfe/trunk/test/Lexer/badstring_in_if0.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/badstring_in_if0.c?rev=173582&r1=173581&r2=173582&view=diff
==============================================================================
--- cfe/trunk/test/Lexer/badstring_in_if0.c (original)
+++ cfe/trunk/test/Lexer/badstring_in_if0.c Sat Jan 26 11:11:39 2013
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1 -E %s 2>&1 | grep -v '^#' | not grep warning
+// RUN: %clang_cc1 -E -verify %s
+// expected-no-diagnostics
#if 0
"
Modified: cfe/trunk/test/Lexer/unknown-char.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/unknown-char.c?rev=173582&r1=173581&r2=173582&view=diff
==============================================================================
--- cfe/trunk/test/Lexer/unknown-char.c (original)
+++ cfe/trunk/test/Lexer/unknown-char.c Sat Jan 26 11:11:39 2013
@@ -1,2 +1,4 @@
-// RUN: %clang_cc1 -E %s 2>&1 | grep -v '^#' | not grep error
+// RUN: %clang_cc1 -E -verify %s
+// expected-no-diagnostics
+
` ` ` `
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=173582&r1=173581&r2=173582&view=diff
==============================================================================
--- cfe/trunk/test/Preprocessor/disabled-cond-diags.c (original)
+++ cfe/trunk/test/Preprocessor/disabled-cond-diags.c Sat Jan 26 11:11:39 2013
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1 -E %s 2>&1 | grep -v '^#' | not grep "warning\|error"
+// RUN: %clang_cc1 -E -verify %s
+// expected-no-diagnostics
#if 0
More information about the cfe-commits
mailing list