This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[ecj] Patch: FYI: fix test suite
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 21 Oct 2006 17:00:44 -0600
- Subject: [ecj] Patch: FYI: fix test suite
- Reply-to: tromey at redhat dot com
I'm checking this in on the gcj-eclipse branch.
This fixes a few test failures. These were bugs in the test suite.
For the PR260 and pr179 tests, the behavior changed from 1.4 to 1.5.
This area was never very well specified to begin with.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* testsuite/libjava.lang/PR260.out: Rewrote for 1.5.
* testsuite/libjava.lang/pr179.out: Rewrote for 1.5.
* testsuite/libjava.lang/pr179.java: Updated comments.
* testsuite/libjava.compile/inner_1.xfail: Removed.
Index: testsuite/libjava.lang/pr179.out
===================================================================
--- testsuite/libjava.lang/pr179.out (revision 117705)
+++ testsuite/libjava.lang/pr179.out (working copy)
@@ -1,8 +1,7 @@
-A initialized
false
-B initialized
false
true
-C initialized
+A initialized
false
+C initialized
true
Index: testsuite/libjava.lang/pr179.java
===================================================================
--- testsuite/libjava.lang/pr179.java (revision 117705)
+++ testsuite/libjava.lang/pr179.java (working copy)
@@ -4,6 +4,7 @@
// Class.isInstance() and Class.isAssignableFrom(), and isAssignableFrom()
// functionality in the event that an interface argument that is not
// implemented by any loaded class is given.
+// Note that the desired output changed from 1.4 to 1.5.
class A
{
@@ -46,14 +47,3 @@
System.out.println (C.class.isInstance (c));
}
}
-
-/* Expected Output:
-A initialized
-false
-B initialized
-false
-true
-C initialized
-false
-true
-*/
Index: testsuite/libjava.lang/PR260.out
===================================================================
--- testsuite/libjava.lang/PR260.out (revision 117705)
+++ testsuite/libjava.lang/PR260.out (working copy)
@@ -1 +0,0 @@
-A initialized
Index: testsuite/libjava.compile/inner_1.xfail
===================================================================
--- testsuite/libjava.compile/inner_1.xfail (revision 117705)
+++ testsuite/libjava.compile/inner_1.xfail (working copy)
@@ -1 +0,0 @@
-xfail-gcj