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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Testsuite patch: new xfail options and don't display output from failed output tests


I found it wasn't very useful to display output from failed output test 
cases. This isn't consistent with the compilation or jni tests and it 
just made it hard to see the list of failed test cases amongst the noise.

There are also some test cases which produce incorrect output only when 
compiled from bytecode or only when compiled from source. I added 
"xfail-source-output" and "xfail-byte-output" for these.

Bryce.

2002-02-20  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>

	* lib/libjava.exp: Add "xfail-byte-output" and "xfail-source-output".
	Don't display expected and actual output for a failed output test.

Index: lib/libjava.exp
===================================================================
RCS file: /cvs/gcc/gcc/libjava/testsuite/lib/libjava.exp,v
retrieving revision 1.32
diff -u -r1.32 libjava.exp
--- libjava.exp	2002/02/11 00:01:11	1.32
+++ libjava.exp	2002/02/20 04:00:08
@@ -510,12 +510,13 @@
     if {[info exists opts(xfail-output)]} {
 	setup_xfail *-*-*
     }
+    if {[info exists opts(xfail-source-output)]} {
+	setup_xfail *-*-*
+    }
     if { $passed == 1 } {
 	pass "$errname output from source compiled test"
 	eval gcj_cleanup $removeList
     } else {
-	clone_output "expected was $expected"
-	clone_output "output was $output"
 	fail "$errname output from source compiled test"
     }
     close $id;
@@ -737,6 +738,9 @@
     if {[info exists opts(xfail-output)]} {
 	setup_xfail *-*-*
     }
+    if {[info exists opts(xfail-byte-output)]} {
+	setup_xfail *-*-*
+    }
     if {$options == "regexp_match"} {
 	if [regexp $expected $output] {
 	    set passed 1;
@@ -750,8 +754,6 @@
 	pass "$errname output from bytecode->native test"
 	eval gcj_cleanup $removeList
     } else {
-	clone_output "expected was $expected"
-	clone_output "output was $output"
 	fail "$errname output from bytecode->native test"
     }
     close $id;
@@ -774,6 +776,10 @@
 #   `xfail-exec'  exec will fail
 #   `xfail-output'
 #                 output will be wrong
+#   `xfail-byte-output'
+#                 output will be wrong when compiled from bytecode
+#   `xfail-source-output'
+#                 output will be wrong when compiled from source code
 #   `need-threads'
 #                 test relies on thread support
 #

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