forked from OSchip/llvm-project
Make having no RUN line a failure.
Doug, please look at decltype-crash and instantiate-function-1.mm, I'm not sure if they are actually testing the right thing / anything. llvm-svn: 77070
This commit is contained in:
parent
b6372fa7bb
commit
595c98729b
|
@ -1,3 +1,5 @@
|
|||
// RUN: clang-cc -fsyntax-only -verify %s
|
||||
|
||||
class X {
|
||||
public:
|
||||
typedef int I;
|
||||
|
@ -8,4 +10,4 @@ public:
|
|||
I b; // expected-error{{unknown type name 'I'}}
|
||||
Y c; // expected-error{{unknown type name 'Y'}}
|
||||
X::Y d;
|
||||
X::I e;
|
||||
X::I e;
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
// Suppress 'no run line' failure.
|
||||
// RUN: true
|
||||
|
||||
// Paragraph 1 is descriptive, and therefore requires no tests.
|
||||
|
|
|
@ -24,3 +24,6 @@ void field_test(void) {
|
|||
struct MyStruct ms;
|
||||
ms.field_var = 10;
|
||||
}
|
||||
|
||||
// Suppress 'no run line' failure.
|
||||
// RUN: true
|
||||
|
|
|
@ -9,3 +9,6 @@ void bar_func(void) {
|
|||
struct MyStruct *ms;
|
||||
ms->field_var = 10;
|
||||
}
|
||||
|
||||
// Suppress 'no run line' failure.
|
||||
// RUN: true
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// RUN: clang-cc -fsyntax-only -verify %s
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
const char* f(const char *s) __attribute__((format_arg(1)));
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
// RUN: clang-cc -fsyntax-only -verify %s
|
||||
|
||||
int& a();
|
||||
|
||||
void f() {
|
||||
decltype(a()) c;
|
||||
decltype(a()) c; // expected-error {{no matching function for call to 'decltype'}}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// RUN: clang-cc -fsyntax-only -verify %s
|
||||
// XFAIL
|
||||
|
||||
template<typename T> struct Member0 {
|
||||
void f(T t) {
|
||||
t;
|
||||
|
|
|
@ -95,8 +95,6 @@ class TestingProgressDisplay:
|
|||
extra = ''
|
||||
if tr.code==TestStatus.Invalid:
|
||||
extra = ' - (Invalid test)'
|
||||
elif tr.code==TestStatus.NoRunLine:
|
||||
extra = ' - (No RUN line)'
|
||||
elif tr.failed():
|
||||
extra = ' - %s'%(TestStatus.getName(tr.code).upper(),)
|
||||
print '%*d/%*d - %s%s'%(self.digits, index+1, self.digits,
|
||||
|
|
|
@ -33,10 +33,9 @@ class TestStatus:
|
|||
XFail = 1
|
||||
Fail = 2
|
||||
XPass = 3
|
||||
NoRunLine = 4
|
||||
Invalid = 5
|
||||
Invalid = 4
|
||||
|
||||
kNames = ['Pass','XFail','Fail','XPass','NoRunLine','Invalid']
|
||||
kNames = ['Pass','XFail','Fail','XPass','Invalid']
|
||||
@staticmethod
|
||||
def getName(code):
|
||||
return TestStatus.kNames[code]
|
||||
|
@ -106,7 +105,7 @@ def runOneTest(FILENAME, SUBST, OUTPUT, TESTNAME, CLANG, CLANGCC,
|
|||
else:
|
||||
print >>output, "******************** TEST '%s' HAS NO RUN LINE! ********************"%(TESTNAME,)
|
||||
output.flush()
|
||||
return TestStatus.NoRunLine
|
||||
return TestStatus.Fail
|
||||
|
||||
FILENAME = os.path.abspath(FILENAME)
|
||||
SCRIPT = OUTPUT + '.script'
|
||||
|
|
Loading…
Reference in New Issue