aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-06-12 12:40:02 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-06-12 12:40:02 +0000
commitc577a0e9bf5812719d08c002a57b263681938aea (patch)
treea893984f97f9f5ae5f0b5e7bea9597d9dc46d851 /test/Preprocessor
parent68617fd6b322c6335dc0d72d828b7a2338b52fad (diff)
Multiple tests in a single test file must be linked with '&&'.
Otherwise, failing tests other than the last one will not be reported. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor')
-rw-r--r--test/Preprocessor/expr_comma.c2
-rw-r--r--test/Preprocessor/expr_invalid_tok.c4
-rw-r--r--test/Preprocessor/macro_fn_varargs_named.c2
-rw-r--r--test/Preprocessor/macro_paste_commaext.c6
-rw-r--r--test/Preprocessor/output_paste_avoid.c2
-rw-r--r--test/Preprocessor/print_line_track.c6
6 files changed, 11 insertions, 11 deletions
diff --git a/test/Preprocessor/expr_comma.c b/test/Preprocessor/expr_comma.c
index 55072723f6..e36f0407bf 100644
--- a/test/Preprocessor/expr_comma.c
+++ b/test/Preprocessor/expr_comma.c
@@ -1,5 +1,5 @@
// Comma is not allowed in C89
-// RUN: not clang -E %s -std=c89 -pedantic-errors
+// RUN: not clang -E %s -std=c89 -pedantic-errors &&
// Comma is allowed if unevaluated in C99
// RUN: clang -E %s -std=c99 -pedantic-errors
diff --git a/test/Preprocessor/expr_invalid_tok.c b/test/Preprocessor/expr_invalid_tok.c
index 82bfca36b8..877a845eff 100644
--- a/test/Preprocessor/expr_invalid_tok.c
+++ b/test/Preprocessor/expr_invalid_tok.c
@@ -1,5 +1,5 @@
-// RUN: not clang -E %s 2>&1 | grep 'invalid token at start of a preprocessor expression'
-// RUN: not clang -E %s 2>&1 | grep 'token is not a valid binary operator in a preprocessor subexpression'
+// RUN: not clang -E %s 2>&1 | grep 'invalid token at start of a preprocessor expression' &&
+// RUN: not clang -E %s 2>&1 | grep 'token is not a valid binary operator in a preprocessor subexpression' &&
// RUN: not clang -E %s 2>&1 | grep ':14: error: expected end of line in preprocessor expression'
// PR2220
diff --git a/test/Preprocessor/macro_fn_varargs_named.c b/test/Preprocessor/macro_fn_varargs_named.c
index 095de82bbb..b3bb72c643 100644
--- a/test/Preprocessor/macro_fn_varargs_named.c
+++ b/test/Preprocessor/macro_fn_varargs_named.c
@@ -1,5 +1,5 @@
// RUN: clang -E %s | grep '^a: x$' &&
-// RUN: clang -E %s | grep '^b: x y, z,h$'
+// RUN: clang -E %s | grep '^b: x y, z,h$' &&
// RUN: clang -E %s | grep '^c: foo(x)$'
#define A(b, c...) b c
diff --git a/test/Preprocessor/macro_paste_commaext.c b/test/Preprocessor/macro_paste_commaext.c
index 0fcd90d68d..e75ac1f574 100644
--- a/test/Preprocessor/macro_paste_commaext.c
+++ b/test/Preprocessor/macro_paste_commaext.c
@@ -1,7 +1,7 @@
// RUN: clang %s -E | grep 'V);' &&
-// RUN: clang %s -E | grep 'W, 1, 2);'
-// RUN: clang %s -E | grep 'X, 1, 2);'
-// RUN: clang %s -E | grep 'Y, );'
+// RUN: clang %s -E | grep 'W, 1, 2);' &&
+// RUN: clang %s -E | grep 'X, 1, 2);' &&
+// RUN: clang %s -E | grep 'Y, );' &&
// RUN: clang %s -E | grep 'Z, );'
#define debug(format, ...) format, ## __VA_ARGS__)
diff --git a/test/Preprocessor/output_paste_avoid.c b/test/Preprocessor/output_paste_avoid.c
index 065c73e939..7fe8788a26 100644
--- a/test/Preprocessor/output_paste_avoid.c
+++ b/test/Preprocessor/output_paste_avoid.c
@@ -1,5 +1,5 @@
// RUN: clang -E %s | grep '+ + - - + + = = =' &&
-// RUN: clang -E %s | not grep -F '...'
+// RUN: clang -E %s | not grep -F '...' &&
// RUN: clang -E %s | not grep -F 'L"str"'
// This should print as ".. ." to avoid turning into ...
diff --git a/test/Preprocessor/print_line_track.c b/test/Preprocessor/print_line_track.c
index 4fbef7407c..567da3c1a2 100644
--- a/test/Preprocessor/print_line_track.c
+++ b/test/Preprocessor/print_line_track.c
@@ -1,6 +1,6 @@
-/* RUN: clang -E %s | grep 'a 3'
- * RUN: clang -E %s | grep 'b 14'
- * RUN: clang -E -P %s | grep 'a 3'
+/* RUN: clang -E %s | grep 'a 3' &&
+ * RUN: clang -E %s | grep 'b 14' &&
+ * RUN: clang -E -P %s | grep 'a 3' &&
* RUN: clang -E -P %s | grep 'b 14'
* PR1848
*/