Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6659364

api/java_util/Date/index.html#Ctor: Date constructor case - tests fail on Vista and Win2008

XMLWordPrintable

      The tests
      api/java_util/Date/index.html#Ctor: Date2001
      api/java_util/Date/index.html#Ctor: Date2002
      api/java_util/Date/index.html#Ctor: Date2003
      fail for locale gmt +3.0 (Moscow).

      Windows system has gmt +3.0 locale but tests pass if locale is gmt 0.0 only.
      Tests report

      Expected: Sun Dec 31 21:00:00 GMT 1899: -2208999600000
      Received: Mon Jan 01 00:00:00 GMT 1900: -2208988800000
      Expected: Tue Jan 15 10:15:00 GMT 1901: -2176206300000
      Received: Tue Jan 15 13:15:00 GMT 1901: -2176195500000
      Expected: Mon Mar 05 11:06:05 GMT 3900: 60910398365000
      Received: Mon Mar 05 14:06:05 GMT 3900: 60910409165000
      ----------log:(6/289)----------
      10800000
      Date2001: Failed. Received: Mon Jan 01 00:00:00 GMT 1900
      Date2002: Failed. Received: Tue Jan 15 13:15:00 GMT 1901
      Date2003: Failed. Received: Mon Mar 05 14:06:05 GMT 3900
      Date2004: Passed. OKAY
      STATUS:Failed.tests: 4; passed: 1; failed: 3; first test case failure: Date2001
      result: Failed. tests: 4; passed: 1; failed: 3; first test case failure: Date2001

      steps to reproduce:
      set CLASSPATH=Z:\\jck_promotions\\1.3a_01\\binaries\\JCK-runtime-13a_01\\tests\\..\\classes;Z:\\jck_promotions\\1.3a_01\\binaries\\JCK-runtime-13a_01\\javatest.jar
      set PATH=
      set SystemRoot=C:/Windows
      C:/jdk/jdk1.3.1_22/bin/java.exe -classic -Xfuture -Djava.library.path=Z:\\jck_promotions\\1.3a_01\\binaries\\JCK-runtime-13a_01\\tests/../lib-win32 -Djava.security.policy=Z:\\jck_promotions\\1.3a_01\\binaries\\JCK-runtime-13a_01\\tests\\..\\lib\\jck.policy -Djava.rmi.activation.port=1098 javasoft.sqe.tests.api.java.util.Date.CtorTests -locale.gmtOffset +3.0

            okutsu Masayoshi Okutsu
            abutaevorcl Alexander Butaev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: