summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-25 12:47:38 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-25 12:47:38 +0000
commit595c98729bd56c74a7ce1fee204dec33ed73e81e (patch)
tree0905a6cef11244feb4c0fcfc5d89628e4b5f7792
parentb6372fa7bba2a313bc9e461661e28c6bb5e951f7 (diff)
downloadbcm5719-llvm-595c98729bd56c74a7ce1fee204dec33ed73e81e.tar.gz
bcm5719-llvm-595c98729bd56c74a7ce1fee204dec33ed73e81e.zip
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
-rw-r--r--clang/test/CXX/class/class.nested.type/p1.cpp4
-rw-r--r--clang/test/CXX/temp/temp.param/p1.cpp3
-rw-r--r--clang/test/Index/t1.c3
-rw-r--r--clang/test/Index/t2.c3
-rw-r--r--clang/test/Sema/attr-format_arg.c2
-rw-r--r--clang/test/SemaCXX/decltype-crash.cpp4
-rw-r--r--clang/test/SemaTemplate/instantiate-function-1.mm3
-rwxr-xr-xclang/utils/test/MultiTestRunner.py2
-rwxr-xr-xclang/utils/test/TestRunner.py7
9 files changed, 23 insertions, 8 deletions
diff --git a/clang/test/CXX/class/class.nested.type/p1.cpp b/clang/test/CXX/class/class.nested.type/p1.cpp
index 33bf4b4473e..61ccd281ca9 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 488c3a07429..a6638b4f60f 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 d6ca9956046..8b57a58b452 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 76d5d6ceeb4..bf52869ec8d 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 6f953155f8c..0830951acc8 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 <stdio.h>
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 c16422e1bac..b56a7f60298 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 aef2d9dbb7e..be995e7ff61 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<typename T> struct Member0 {
void f(T t) {
t;
diff --git a/clang/utils/test/MultiTestRunner.py b/clang/utils/test/MultiTestRunner.py
index dcf9d89ebbb..5986cd927bd 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 3b2b5eb7cc6..ba43330d9a6 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'
OpenPOWER on IntegriCloud