[patch] mauve testsuite sql Timestamp
Michael Koch
konqueror@gmx.de
Sat Oct 9 21:10:00 GMT 2004
Am Samstag, 9. Oktober 2004 22:31 schrieb Andreas Tobler:
> Hi all,
>
> there is a bug in the mauve/gnu/testlet/java/sql/Timestamp test.
>
> Doing this in a tclsh gives me the following:
>
> % set time_c [clock format 1099999999 -format "%Y-%m-%d %H:%M:%S"]
> 2004-11-09 12:33:19
>
> In the test we have a time of 06:33:19. So the equals always fails
> for toString.
>
> with the attached patch I get:
>
> [wolfram:libjava/testsuite/mauve-build] andreast%
> ./DejaGNUTestHarness run
> gnu.testlet.java.sql.Timestamp.TimestampTest
> PASS: gnu.testlet.java.sql.Timestamp.TimestampTest: valueOf (number
> 1) PASS: gnu.testlet.java.sql.Timestamp.TimestampTest: getNanos
> (number 1) PASS: gnu.testlet.java.sql.Timestamp.TimestampTest:
> toString (number 1) PASS:
> gnu.testlet.java.sql.Timestamp.TimestampTest: getNanos (number 1)
> PASS: gnu.testlet.java.sql.Timestamp.TimestampTest: toString
> (number 1) PASS: gnu.testlet.java.sql.Timestamp.TimestampTest:
> getNanos (number 1) PASS:
> gnu.testlet.java.sql.Timestamp.TimestampTest: toString (number 1)
> PASS: gnu.testlet.java.sql.Timestamp.TimestampTest: equals (number
> 1) PASS: gnu.testlet.java.sql.Timestamp.TimestampTest: equals
> (number 1) 0 of 9 tests failed
>
> Otherwise I had three failures, see gcc-results.
>
>
> Could anyone familar with mauve and cvs please check and if ok
> commit ?
Tested with GCJ CVS Head from today and jamvm 1.2 + GNU classpath CVS
from today. For both your patch made all tests pass.
Michael
--
Homepage: http://www.worldforge.org/
More information about the Java-patches
mailing list