diff --git a/clang/test/CXX/class/class.nested.type/p1.cpp b/clang/test/CXX/class/class.nested.type/p1.cpp index 33bf4b4473e5..61ccd281ca93 100644 --- a/clang/test/CXX/class/class.nested.type/p1.cpp +++ b/clang/test/CXX/class/class.nested.type/p1.cpp @@ -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; \ No newline at end of file +X::I e; diff --git a/clang/test/CXX/temp/temp.param/p1.cpp b/clang/test/CXX/temp/temp.param/p1.cpp index 488c3a07429a..a6638b4f60f2 100644 --- a/clang/test/CXX/temp/temp.param/p1.cpp +++ b/clang/test/CXX/temp/temp.param/p1.cpp @@ -1 +1,4 @@ +// Suppress 'no run line' failure. +// RUN: true + // Paragraph 1 is descriptive, and therefore requires no tests. diff --git a/clang/test/Index/t1.c b/clang/test/Index/t1.c index d6ca9956046f..8b57a58b4522 100644 --- a/clang/test/Index/t1.c +++ b/clang/test/Index/t1.c @@ -24,3 +24,6 @@ void field_test(void) { struct MyStruct ms; ms.field_var = 10; } + +// Suppress 'no run line' failure. +// RUN: true diff --git a/clang/test/Index/t2.c b/clang/test/Index/t2.c index 76d5d6ceeb41..bf52869ec8d9 100644 --- a/clang/test/Index/t2.c +++ b/clang/test/Index/t2.c @@ -9,3 +9,6 @@ void bar_func(void) { struct MyStruct *ms; ms->field_var = 10; } + +// Suppress 'no run line' failure. +// RUN: true diff --git a/clang/test/Sema/attr-format_arg.c b/clang/test/Sema/attr-format_arg.c index 6f953155f8c8..0830951acc89 100644 --- a/clang/test/Sema/attr-format_arg.c +++ b/clang/test/Sema/attr-format_arg.c @@ -1,3 +1,5 @@ +// RUN: clang-cc -fsyntax-only -verify %s + #include const char* f(const char *s) __attribute__((format_arg(1))); diff --git a/clang/test/SemaCXX/decltype-crash.cpp b/clang/test/SemaCXX/decltype-crash.cpp index c16422e1bac1..b56a7f602987 100644 --- a/clang/test/SemaCXX/decltype-crash.cpp +++ b/clang/test/SemaCXX/decltype-crash.cpp @@ -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'}} } diff --git a/clang/test/SemaTemplate/instantiate-function-1.mm b/clang/test/SemaTemplate/instantiate-function-1.mm index aef2d9dbb7eb..be995e7ff615 100644 --- a/clang/test/SemaTemplate/instantiate-function-1.mm +++ b/clang/test/SemaTemplate/instantiate-function-1.mm @@ -1,3 +1,6 @@ +// RUN: clang-cc -fsyntax-only -verify %s +// XFAIL + template struct Member0 { void f(T t) { t; diff --git a/clang/utils/test/MultiTestRunner.py b/clang/utils/test/MultiTestRunner.py index dcf9d89ebbb7..5986cd927bd4 100755 --- a/clang/utils/test/MultiTestRunner.py +++ b/clang/utils/test/MultiTestRunner.py @@ -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, diff --git a/clang/utils/test/TestRunner.py b/clang/utils/test/TestRunner.py index 3b2b5eb7cc63..ba43330d9a68 100755 --- a/clang/utils/test/TestRunner.py +++ b/clang/utils/test/TestRunner.py @@ -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'