Patch: FYI: test suite updates
Tom Tromey
tromey@redhat.com
Tue Jun 4 14:04:00 GMT 2002
I'm checking this in.
This adds a few test cases for recently-fixed bugs.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* libjava.compile/T20020604.java: New file.
For PR libgcj/6389:
* libjava.mauve/xfails: Now passes System.getProperty test.
For PR java/1343 and PR java/6336:
* libjava.compile/PR1343.java: New file.
For PR java/5913:
* libjava.compile/PR5913.xfail: Removed.
Index: libjava.compile/PR1343.java
===================================================================
RCS file: libjava.compile/PR1343.java
diff -N libjava.compile/PR1343.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ libjava.compile/PR1343.java 4 Jun 2002 19:37:53 -0000
@@ -0,0 +1,17 @@
+import java.util.Vector;
+
+public class PR1343
+{
+ void f(Object[] l)
+ {
+ class x1
+ {
+ };
+ }
+ void f(Vector l)
+ {
+ class x1
+ {
+ };
+ }
+}
Index: libjava.compile/PR5913.xfail
===================================================================
RCS file: libjava.compile/PR5913.xfail
diff -N libjava.compile/PR5913.xfail
--- libjava.compile/PR5913.xfail 12 Mar 2002 07:23:25 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,2 +0,0 @@
-xfail-gcj
-xfail-gcjC
Index: libjava.compile/T20020604.java
===================================================================
RCS file: libjava.compile/T20020604.java
diff -N libjava.compile/T20020604.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ libjava.compile/T20020604.java 4 Jun 2002 19:37:53 -0000
@@ -0,0 +1,17 @@
+// Regression test for gcj crash, when compiled with -O2 on
+// i686-pc-linux-gnu.
+public class T20020604
+{
+ static double d2 = 0.0;
+
+ static Object lockObject = new Object();
+
+ public static double f(double d1) {
+
+ synchronized (lockObject){
+ d2 = Math.max(d1, d2);
+ }
+
+ return d2;
+ }
+}
Index: libjava.mauve/xfails
===================================================================
RCS file: /cvs/gcc/gcc/libjava/testsuite/libjava.mauve/xfails,v
retrieving revision 1.7
diff -u -r1.7 xfails
--- libjava.mauve/xfails 21 Apr 2002 12:35:04 -0000 1.7
+++ libjava.mauve/xfails 4 Jun 2002 19:37:54 -0000
@@ -39,7 +39,6 @@
FAIL: gnu.testlet.java.lang.Float.FloatTest: Error: test_intValue returned wrong results - 1 (number 1)
FAIL: gnu.testlet.java.lang.String.CASE_INSENSITIVE_ORDER: unicode mappings (number 1)
FAIL: gnu.testlet.java.lang.String.CASE_INSENSITIVE_ORDER: unicode mappings (number 2)
-FAIL: gnu.testlet.java.lang.System.getProperty: '' (number 1)
FAIL: gnu.testlet.java.text.AttributedString.Test: Attribute key count (number 1)
FAIL: gnu.testlet.java.text.DateFormatSymbols.Test: patterns (number 2)
FAIL: gnu.testlet.java.text.SimpleDateFormat.Test: equals() (number 1)
More information about the Java-patches
mailing list