]> granicus.if.org Git - clang/commitdiff
PR10867: Work around a bug in lit. Multiple RUN: lines are joined with &&, so:
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 6 Sep 2011 03:01:15 +0000 (03:01 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 6 Sep 2011 03:01:15 +0000 (03:01 +0000)
  RUN: foo
  RUN: bar || true

is equivalent to:

  RUN: foo && bar || true

which is equivalent to:

  RUN: (foo && bar) || true

This resulted in several of the fixit tests not really testing anything.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139132 91177308-0d34-0410-b5e6-96231b3b80d8

test/FixIt/fixit-cxx0x.cpp
test/FixIt/fixit-errors.c
test/FixIt/fixit-function-call.cpp
test/FixIt/fixit-missing-method-return-type.m
test/FixIt/fixit-objc-message.m
test/FixIt/fixit-static-object-decl.m
test/FixIt/fixit.c
test/FixIt/fixit.cpp
test/Sema/format-strings-fixit.c

index 77e9e5815c2f90e4ce9b46a9dc1a26271ae19584..c3c1dcf20f5dd7c7c61bc0464a6413bf6123e038 100644 (file)
@@ -1,6 +1,6 @@
 // RUN: %clang_cc1 -verify -std=c++0x %s
 // RUN: cp %s %t
-// RUN: %clang_cc1 -x c++ -std=c++0x -fixit %t || true
+// RUN: not %clang_cc1 -x c++ -std=c++0x -fixit %t
 // RUN: %clang_cc1 -Wall -pedantic -x c++ -std=c++0x %t
 
 /* This is a test of the various code modification hints that only
index f8e2295d496adc4182fc6067b6ac70bfe256bbff..356e862ff60699298cb4cb7f16385571c1a1e591 100644 (file)
@@ -1,5 +1,5 @@
 // RUN: cp %s %t
-// RUN: true || %clang_cc1 -pedantic -verify -fixit -x c %t
+// RUN: %clang_cc1 -pedantic -verify -fixit -x c %t
 // RUN: %clang_cc1 -pedantic -Werror -x c %t
 // XFAIL: *
 
index b8a08d2301b88da9b564626aedba022f3ad7392c..273e4a41ec8dd2869b616b8e53943cc4fd1f8bf9 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fdiagnostics-parseable-fixits -x c++ %s 2> %t  || true
+// RUN: not %clang_cc1 -fdiagnostics-parseable-fixits -x c++ %s 2> %t
 // RUN: FileCheck %s < %t
 // PR5941
 // END.
index 214bdf80b0d42c5ae84f55b145c67845b1197756..027c89572ff961abbcdb293a16514007f8e89220 100644 (file)
@@ -1,11 +1,11 @@
 // Objective-C recovery
 // RUN: cp %s %t
-// RUN: %clang_cc1 -Wmissing-method-return-type -fixit -x objective-c %t || true
+// RUN: %clang_cc1 -Wmissing-method-return-type -fixit -x objective-c %t
 // RUN: %clang_cc1 -fsyntax-only -pedantic -Wmissing-method-return-type -Werror -x objective-c %t
 
 // Objective-C++ recovery
 // RUN: cp %s %t
-// RUN: %clang_cc1 -Wmissing-method-return-type -fixit -x objective-c++ %t || true
+// RUN: %clang_cc1 -Wmissing-method-return-type -fixit -x objective-c++ %t
 // RUN: %clang_cc1 -fsyntax-only -pedantic -Wmissing-method-return-type -Werror -x objective-c++ %t
 // rdar://9615045
 
index 1fef3cc56d5ed8a9bf6da04e760fcc2462e254a7..a3680e475ee2ec288d830f033ef4d03b084faac6 100644 (file)
@@ -1,11 +1,11 @@
 // Objective-C recovery
 // RUN: cp %s %t
-// RUN: %clang_cc1 -pedantic -Wall -fixit -x objective-c %t || true
+// RUN: not %clang_cc1 -pedantic -Wall -fixit -x objective-c %t
 // RUN: %clang_cc1 -fsyntax-only -pedantic -Wall -Werror -x objective-c %t
 
 // Objective-C++ recovery
 // RUN: cp %s %t
-// RUN: %clang_cc1 -pedantic -Wall -fixit -x objective-c++ %t || true
+// RUN: not %clang_cc1 -pedantic -Wall -fixit -x objective-c++ %t
 // RUN: %clang_cc1 -fsyntax-only -pedantic -Wall -Werror -x objective-c++ %t
 
 @interface A
index 65437dbfeb633dd3077e9285c0a58cacc5542fad..e13900fa786f483a6ffc218e3938ee18d70e8d33 100644 (file)
@@ -1,11 +1,11 @@
 // Objective-C recovery
 // RUN: cp %s %t
-// RUN: %clang_cc1 -fixit -x objective-c %t || true
+// RUN: not %clang_cc1 -fixit -x objective-c %t
 // RUN: %clang_cc1 -fsyntax-only -Werror -x objective-c %t
 
 // Objective-C++ recovery
 // RUN: cp %s %t
-// RUN: %clang_cc1 -fixit -x objective-c++ %t || true
+// RUN: not %clang_cc1 -fixit -x objective-c++ %t
 // RUN: %clang_cc1 -fsyntax-only -Werror -x objective-c++ %t
 // rdar://9603056
 
index 2dbaab1c9f35ceb4aa76f461b4c9ed3477bc944b..5ba0aac4509b667e9e4fc50edf5c59ae76325d4a 100644 (file)
@@ -1,5 +1,5 @@
 // RUN: cp %s %t
-// RUN: %clang_cc1 -pedantic -Wunused-label -fixit -x c %t || true
+// RUN: not %clang_cc1 -pedantic -Wunused-label -fixit -x c %t
 // RUN: grep -v CHECK %t > %t2
 // RUN: %clang_cc1 -pedantic -Wunused-label -Werror -x c %t
 // RUN: FileCheck -input-file=%t2 %t
index 109c14d91a702e7c38cad7b5fa30a64ba6d58273..785b92b2d8179ad993edb73f0bcf6af39b54cf86 100644 (file)
@@ -1,5 +1,5 @@
 // RUN: cp %s %t
-// RUN: %clang_cc1 -pedantic -Wall -fixit -x c++ %t || true
+// RUN: not %clang_cc1 -pedantic -Wall -fixit -x c++ %t
 // RUN: %clang_cc1 -fsyntax-only -pedantic -Wall -Werror -x c++ %t
 
 /* This is a test of the various code modification hints that are
index c2fa2f7707450cfb36b64535b99a7bd2692dfefe..d03cccb601f32ec14fa03b703655bc131dbcbc5e 100644 (file)
@@ -1,5 +1,5 @@
 // RUN: cp %s %t
-// RUN: %clang_cc1 -pedantic -Wall -fixit %t || true
+// RUN: %clang_cc1 -pedantic -Wall -fixit %t
 // RUN: %clang_cc1 -fsyntax-only -pedantic -Wall -Werror %t
 // RUN: %clang_cc1 -E -o - %t | FileCheck %s