]> granicus.if.org Git - clang/commitdiff
Multiple tests in a single test file must be linked with '&&'.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 12 Jun 2008 12:40:02 +0000 (12:40 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 12 Jun 2008 12:40:02 +0000 (12:40 +0000)
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

19 files changed:
test/CodeGen/address-space.c
test/CodeGen/atomic.c
test/CodeGen/attributes.c
test/CodeGen/builtin-count-zeros.c
test/CodeGen/builtin-stackaddress.c
test/CodeGen/constant-comparison.c
test/CodeGen/string-init.c
test/CodeGen/struct-x86-darwin.c
test/CodeGen/x86-inline-asm.c
test/Lexer/11-27-2007-FloatLiterals.c
test/Parser/control-scope.c
test/Parser/recovery-1.c
test/Preprocessor/expr_comma.c
test/Preprocessor/expr_invalid_tok.c
test/Preprocessor/macro_fn_varargs_named.c
test/Preprocessor/macro_paste_commaext.c
test/Preprocessor/output_paste_avoid.c
test/Preprocessor/print_line_track.c
test/Rewriter/objc-ivar-receiver-1.m

index 20f41821a12f3a1c958a11ff0c7d02b038d84e03..1c295a24570f9b1e7fcb5dda453ae8c0b48df869 100644 (file)
@@ -1,5 +1,5 @@
-// RUN: clang -emit-llvm < %s 2>&1 | grep '@foo.*global.*addrspace(1)'
-// RUN: clang -emit-llvm < %s 2>&1 | grep '@ban.*global.*addrspace(1)'
+// RUN: clang -emit-llvm < %s 2>&1 | grep '@foo.*global.*addrspace(1)' &&
+// RUN: clang -emit-llvm < %s 2>&1 | grep '@ban.*global.*addrspace(1)' &&
 // RUN: clang -emit-llvm < %s 2>&1 | grep 'load.*addrspace(1)' | count 2
 int foo __attribute__((address_space(1)));
 int ban[10] __attribute__((address_space(1)));
index a80d4666cbf400b9946410a16520aca39aa7a860..0d2ea5a8a06736ed658344f9ffa7d2c293e5bd0d 100644 (file)
@@ -1,14 +1,14 @@
-// RUN: clang %s -emit-llvm -o - > %t1
-// RUN: grep @llvm.atomic.las.i32 %t1
-// RUN: grep @llvm.atomic.lss.i32 %t1
-// RUN: grep @llvm.atomic.load.min.i32 %t1
-// RUN: grep @llvm.atomic.load.max.i32 %t1
-// RUN: grep @llvm.atomic.load.umin.i32 %t1
-// RUN: grep @llvm.atomic.load.umax.i32 %t1
-// RUN: grep @llvm.atomic.swap.i32 %t1
-// RUN: grep @llvm.atomic.lcs.i32 %t1
-// RUN: grep @llvm.atomic.load.and.i32 %t1
-// RUN: grep @llvm.atomic.load.or.i32 %t1
+// RUN: clang %s -emit-llvm -o - > %t1 &&
+// RUN: grep @llvm.atomic.las.i32 %t1 &&
+// RUN: grep @llvm.atomic.lss.i32 %t1 &&
+// RUN: grep @llvm.atomic.load.min.i32 %t1 &&
+// RUN: grep @llvm.atomic.load.max.i32 %t1 &&
+// RUN: grep @llvm.atomic.load.umin.i32 %t1 &&
+// RUN: grep @llvm.atomic.load.umax.i32 %t1 &&
+// RUN: grep @llvm.atomic.swap.i32 %t1 &&
+// RUN: grep @llvm.atomic.lcs.i32 %t1 &&
+// RUN: grep @llvm.atomic.load.and.i32 %t1 &&
+// RUN: grep @llvm.atomic.load.or.i32 %t1 &&
 // RUN: grep @llvm.atomic.load.xor.i32 %t1
 
 
index 95273f84a6077b2be338e2d3a06e63a2acd4f205..950a7a7b55f149a01496ba6e02053d06215f247c 100644 (file)
@@ -1,27 +1,27 @@
-// RUN: clang -emit-llvm < %s | grep 't1.*noreturn'
+// RUN: clang -emit-llvm < %s | grep 't1.*noreturn' &&
 void t1() __attribute__((noreturn));
 void t1() {}
 
-// RUN: clang -emit-llvm < %s | grep 't2.*nounwind'
+// RUN: clang -emit-llvm < %s | grep 't2.*nounwind' &&
 void t2() __attribute__((nothrow));
 void t2() {}
 
-// RUN: clang -emit-llvm < %s | grep 'weak.*t3'
+// RUN: clang -emit-llvm < %s | grep 'weak.*t3' &&
 void t3() __attribute__((weak));
 void t3() {}
 
-// RUN: clang -emit-llvm < %s | grep 'hidden.*t4'
+// RUN: clang -emit-llvm < %s | grep 'hidden.*t4' &&
 void t4() __attribute__((visibility("hidden")));
 void t4() {}
 
-// RUN: clang -emit-llvm < %s | grep 't5.*weak'
+// RUN: clang -emit-llvm < %s | grep 't5.*weak' &&
 int t5 __attribute__((weak)) = 2;
 
-// RUN: clang -emit-llvm < %s | grep 't6.*protected'
+// RUN: clang -emit-llvm < %s | grep 't6.*protected' &&
 int t6 __attribute__((visibility("protected")));
 
-// RUN: clang -emit-llvm < %s | grep 't7.*noreturn'
-// RUN: clang -emit-llvm < %s | grep 't7.*nounwind'
+// RUN: clang -emit-llvm < %s | grep 't7.*noreturn' &&
+// RUN: clang -emit-llvm < %s | grep 't7.*nounwind' &&
 void t7() __attribute__((noreturn, nothrow));
 void t7() {}
 
index 26b139aa8c44d2dbb8a72d1e4c52f258b09cb50c..5453cb1d8905ef2ed383e41dc97a54c7bbd7e749 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -emit-llvm %s -o - | grep 'cttz' | count 2
+// RUN: clang -emit-llvm %s -o - | grep 'cttz' | count 2 &&
 // RUN: clang -emit-llvm %s -o - | grep 'ctlz' | count 2
 
 int a(int a) {return __builtin_ctz(a) + __builtin_clz(a);}
index 950723d5d35ac14470d8185bc658867b9cc8bd43..ddfb9dc790aafb41a8c16b0a9e38b22bab980dc9 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -emit-llvm < %s | grep "llvm.returnaddress"
+// RUN: clang -emit-llvm < %s | grep "llvm.returnaddress" &&
 // RUN: clang -emit-llvm < %s | grep "llvm.frameaddress"
 void* a(unsigned x) {
 return __builtin_return_address(0);
index bc48ac465920b53e55e10b246b7c8568e387fa0d..b7b2a0ed5abb268925538a146f34e60689e82344 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -emit-llvm %s -o - 2>&1 | not grep warning
+// RUN: clang -emit-llvm %s -o - 2>&1 | not grep warning &&
 // RUN: clang -emit-llvm %s -o - | grep @b | count 1
 
 int a, b;
index 1d1a740faac266ffe3670ae316e64cd1cfc01ccb..c703c622ec721684348e0ff6318fb0c90c8474f3 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -emit-llvm %s -o - | not grep "[5 x i8]"
+// RUN: clang -emit-llvm %s -o - | not grep "[5 x i8]" &&
 // RUN: clang -emit-llvm %s -o - | not grep "store"
 
 void test(void) {
index 68e6d72961824b0df23a3cb21ed2304766d76b20..7a2e7de36b140b5fa9bb4780934621a60eb5351e 100644 (file)
@@ -5,8 +5,8 @@
 // RUN: grep "STestB1 = type <{ i8, i8 }>" %t1 &&
 // RUN: grep "STestB2 = type <{ i8, i8, i8 }>" %t1 &&
 // RUN: grep "STestB3 = type <{ i8, i8 }>" %t1 &&
-// RUN: grep "STestB4 = type <{ i8, i8, i8, i8 }>" %t1
-// RUN: grep "STestB5 = type <{ i8, i8, i8, i8, i8, i8 }>" %t1
+// RUN: grep "STestB4 = type <{ i8, i8, i8, i8 }>" %t1 &&
+// RUN: grep "STestB5 = type <{ i8, i8, i8, i8, i8, i8 }>" %t1 &&
 // RUN: grep "STestB6 = type <{ i8, i8, i8, i8 }>" %t1
 // Test struct layout for x86-darwin target
 
index 41fd7a72d81f54f73a523f87a8cb6d366bfce287..7bdea97338237baf3493de3eaa61d448267cbf09 100644 (file)
@@ -1,11 +1,11 @@
 // RUN: clang %s -triple=i686-pc-linux-gnu -emit-llvm -o - > %t1
-// RUN: grep "ax" %t1
-// RUN: grep "bx" %t1
-// RUN: grep "cx" %t1
-// RUN: grep "dx" %t1
-// RUN: grep "di" %t1
-// RUN: grep "si" %t1
-// RUN: grep "st" %t1
+// RUN: grep "ax" %t1 &&
+// RUN: grep "bx" %t1 &&
+// RUN: grep "cx" %t1 &&
+// RUN: grep "dx" %t1 &&
+// RUN: grep "di" %t1 &&
+// RUN: grep "si" %t1 &&
+// RUN: grep "st" %t1 &&
 // RUN: grep "st(1)" %t1
 
 void f() {
index 3f938576a7faab81d72ccf7b518637913deebbf5..c0e21546a851cd1a37beb77c551f12d1a9aa91fc 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang %s -emit-llvm -o - | grep 0x3BFD83C940000000 | count 2
+// RUN: clang %s -emit-llvm -o - | grep 0x3BFD83C940000000 | count 2 &&
 // RUN: clang %s -emit-llvm -o - | grep 2.000000e+32 | count 2
 
 float  F  = 1e-19f;
index 62f79dbdf1736ea6c1374a1da0bf07b29bad1391..3d588d63b4ccf432df89bb7d0a058fa6f07d73b3 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: not clang %s -std=c90
+// RUN: not clang %s -std=c90 &&
 // RUN: clang %s -std=c99
 
 int f (int z) { 
index b7270b572a9f9e97757054676b8b2d725948369a..d70cdab364a1bc3a8460b1f6b4312421f64ca944 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -fsyntax-only -fno-caret-diagnostics -pedantic %s 2>&1 | grep warning | wc -l | grep 1
+// RUN: clang -fsyntax-only -fno-caret-diagnostics -pedantic %s 2>&1 | grep warning | wc -l | grep 1 &&
 // RUN: clang -fsyntax-only -verify -pedantic %s
 
 char ((((                       /* expected-error {{to match this '('}} */
index 55072723f6bc9d4f60a5ef790dcba0274c3b5fc2..e36f0407bf8df88a9afcd05a439a304aa02c1570 100644 (file)
@@ -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 
index 82bfca36b8f2c355085fa38fb4ebe6e1233ab8c6..877a845eff66b350e3c8b23876a96835781748e4 100644 (file)
@@ -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
 
index 095de82bbb709f64a914de5fe8c4012925b706d3..b3bb72c64310232d518a9c78c128b977d486595d 100644 (file)
@@ -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
index 0fcd90d68d1f481cc1d260cf504dcddf6435844b..e75ac1f5740a4fb50a82a2c0ad37cb7a199aac8f 100644 (file)
@@ -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__)
index 065c73e93908d97215abda24aba1ac77f768be80..7fe8788a267dfc1a955a1e51f16ff362132ca06a 100644 (file)
@@ -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 ...
index 4fbef7407cfddcdda9a48594436f578a74c3b2fa..567da3c1a213dcc3ad06fbeaa4a5f04ef7130283 100644 (file)
@@ -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
 */
index 0274ff836254a1ce311a69cfabc4d50ed8d4138f..5a9365f376f6a9ced5672b27535b548d947b6388 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-objc %s -o -
+// RUN: clang -rewrite-objc %s -o - &&
 // RUN: clang -rewrite-objc %s -o - | grep 'newInv->_container'
 
 @interface NSMutableArray