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]

Re: [patch] mauve testsuite sql Timestamp


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/


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