forked from OSchip/llvm-project
PR10867: Work around a bug in lit. Multiple RUN: lines are joined with &&, so:
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. llvm-svn: 139132
This commit is contained in:
parent
8ed0ef9bae
commit
3ab15558d7
|
@ -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
|
||||
|
|
|
@ -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: *
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue