This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[RFA]: Silence unwanted testsuite passes / failures


Since I was complaining about the noise of the excessive passes
and failures of the testsuite, and how difficult it makes it
to recognise new regressions or fixes, I'm going to fix it.

This patch silences the common XPASS and XFAIL cases across all
architectures for C, C++ and Fortran.  The Java and ObjC frontends
are not included as it's not clear what's happening there.

If this is OK, I'll then go through some of the target-specific
ones, and aim to get most people down to nothing unexpected
happening.  Then we should easily be able to spot anything new.
I may even do it for the branch if people would like that, too.

That's the plan at least.  I've verified this does as I claim
to existing tests.  OK to commit on mainline?  Pretty Please? <g>

Neil.

	* g++.old-deja/g++.ext/instantiate1.C: XFAIL.
	* g++.old-deja/g++.other/crash31.C: XFAIL.
	* g77.f-torture/execute/20010116.x: Remove XFAIL.
	* g77.f-torture/execute/short.x: XFAIL -Os.
	* gcc.c-torture/execute/20010123-1.x: XFAIL.
	* gcc.c-torture/execute/20010124-1.x: XFAIL.
	* gcc.dg/sequence-pt-1.c: XFAIL one test.

Index: gcc/testsuite/g++.old-deja/g++.ext/instantiate1.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.old-deja/g++.ext/instantiate1.C,v
retrieving revision 1.2
diff -u -p -r1.2 instantiate1.C
--- instantiate1.C	2000/06/03 00:15:05	1.2
+++ instantiate1.C	2001/03/07 20:26:12
@@ -15,9 +15,9 @@ extern template struct A<int>;
 
 int main ()
 {
-  f (42);			// ERROR - not instantiated
+  f (42);			// ERROR - not instantiated XFAIL *-*-*
   A<int> a;
-  a.f ();			// ERROR - not instantiated
+  a.f ();			// ERROR - not instantiated XFAIL *-*-*
   f (2.0);			// gets bogus error
   A<double> b;
   b.f ();			// gets bogus error
Index: gcc/testsuite/g++.old-deja/g++.other/crash31.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.old-deja/g++.other/crash31.C,v
retrieving revision 1.1
diff -u -p -r1.1 crash31.C
--- crash31.C	2000/11/06 12:29:02	1.1
+++ crash31.C	2001/03/07 20:26:17
@@ -1,11 +1,12 @@
 // Build don't link:
 // Origin: Jakub Jelinek <jakub@redhat.com>
 
-// crash test - XFAIL *-*-*
+// excess errors test - XFAIL *-*-*
 
 namespace bar
 {
 struct foo
 {
   foo();
-};			// ERROR - parse error
+};
+			// ERROR - parse error XFAIL *-*-*
Index: gcc/testsuite/g77.f-torture/execute/20010116.x
===================================================================
RCS file: 20010116.x
diff -N 20010116.x
--- /sourceware/cvs-tmp/cvsGZnmOb	Wed Mar  7 12:26:59 2001
+++ /dev/null	Tue May  5 13:32:27 1998
@@ -1,2 +0,0 @@
-set torture_execute_xfail "i?86-*-*"
-return 0
Index: gcc/testsuite/g77.f-torture/execute/short.x
===================================================================
RCS file: short.x
diff -N short.x
--- /dev/null	Tue May  5 13:32:27 1998
+++ short.x	Wed Mar  7 12:26:22 2001
@@ -0,0 +1,6 @@
+set torture_eval_before_execute {
+  set compiler_conditional_xfail_data {
+    "" "*-*-*" { "-Os" } { "" }
+    }
+}
+return 0
Index: gcc/testsuite/gcc.c-torture/execute/20010123-1.x
===================================================================
RCS file: 20010123-1.x
diff -N 20010123-1.x
--- /dev/null	Tue May  5 13:32:27 1998
+++ 20010123-1.x	Wed Mar  7 12:26:22 2001
@@ -0,0 +1,2 @@
+set torture_execute_xfail "*-*-*"
+return 0
Index: gcc/testsuite/gcc.c-torture/execute/20010124-1.x
===================================================================
RCS file: 20010124-1.x
diff -N 20010124-1.x
--- /dev/null	Tue May  5 13:32:27 1998
+++ 20010124-1.x	Wed Mar  7 12:26:22 2001
@@ -0,0 +1,2 @@
+set torture_execute_xfail "*-*-*"
+return 0
Index: gcc/testsuite/gcc.dg/sequence-pt-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/sequence-pt-1.c,v
retrieving revision 1.5
diff -u -p -r1.5 sequence-pt-1.c
--- sequence-pt-1.c	2000/11/24 11:49:46	1.5
+++ sequence-pt-1.c	2001/03/07 20:26:29
@@ -56,7 +56,7 @@ foo (int a, int b, int n, int p, int *pt
   ap[a+=1] += a++; /* { dg-warning "undefined" "sequence point warning" } */
   a = a++, b = a; /* { dg-warning "undefined" "sequence point warning" } */
   b = a, a = a++; /* { dg-warning "undefined" "sequence point warning" } */
-  a = (b++ ? n : a) + b; /* { dg-warning "undefined" "sequence point warning" } */
+  a = (b++ ? n : a) + b; /* { dg-warning "undefined" "sequence point warning" { xfail *-*-* } } */
   b ? a = a++ : a; /* { dg-warning "undefined" "sequence point warning" } */
   b ? a : a = a++; /* { dg-warning "undefined" "sequence point warning" } */
   b && (a = a++); /* { dg-warning "undefined" "sequence point warning" } */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]