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

Regression-test java/util/Formatter/Basic.java fails due to unset TimeZone

    Details

    • Subcomponent:
    • Resolved In Build:
      b59
    • CPU:
      x86, sparc
    • OS:
      solaris_8, windows_xp

      Description



      Name: vsR10238 Date: 05/31/2004


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b51, JDK1.5.0-b50
                     (the test fails with previous JDK builds because of the bug 4973103,
                      the test is absent in JDK1.4.2)
      Testbase : Regression-test
      Platform[s] : Solaris (sparc, x86), Windows (passes on linux)
      switch/Mode : -client
      Falling test: java/util/Formatter/Basic.java

      Regression-test java/util/Formatter/Basic.java test fails using JDK1.5.0-b51 with
      java.lang.RuntimeException on all platforms except linux.

      This bug fails in previous JDK builds because of the bug 4973103 integrated in tiger-b49.

      ###@###.### (the integrator of the bug 4973103) wrote:
      ...
      Hi, Irina.
       >> The failed JTR file is attached to this letter.
       >> Please, note that we use the Regression testbase supplied with JDK1.5.0-b51.

      This is quite the puzzle. It does appear that you have a recent version of test. I
      thought I'd taken care of removing all possibility of failures for %tp but it seems that
      there's still something else lurking about.

      I haven't been able to find another machine where this test fails and I haven't time to
      send you a test reduction to see if I can narrow down the problem.

      Why don't you file another bug against this problem.

      It looks like I'll be updating the implementation of "%tP" in the next week so I'll look
      into the failing regression test then.

      Thanks,
      iris
      ...

      Please, see also the bug 4973103.

      Test source location:
      =====================
      /java/re/jdk/1.5.0/promoted/all/b51/ws/j2se/test/java/util/Formatter/Basic.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b51-week4/regtest/sparc/Solaris_8_sparc_CDE__linux-1/workDir/test/java/util/Formatter/Basic.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its variables)

      --- script start ---
      #!/bin/sh
      RESULT_DIR=`pwd`
      WORK_DIR=$RESULT_DIR/workDir/test
      REPORT_DIR=$RESULT_DIR/reportDir

      #Paths in Java Software:
      JT_HOME="/java/re/jct-tools/3.1.2/archive/fcs/binaries"
      JAVA_HOME="/java/re/jdk/1.5.0/promoted/all/b51/binaries/solaris-sparc"
      TEST_BASE_PATH="/java/re/jdk/1.5.0/promoted/all/b51/ws/j2se/test"

      #Alternative paths outside Java Software
      #JT_HOME="/net/koori.sfbay/onestop/jct-tools/3.1.2/archive/fcs/binaries"
      #JAVA_HOME="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b51/binaries/solaris-sparc"
      #TEST_BASE_PATH="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b51/ws/j2se/test"

      TESTVMOPTS="-client"
      CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"
      TEST="java/util/Formatter/Basic.java"

      mkdir -p $WORK_DIR/scratch 2>&1
      mkdir -p $WORK_DIR/jtData 2>&1
      mkdir -p $REPORT_DIR 2>&1
      #rm $WORK_DIR/jtData/ResultCache.jtw 2>&1
      cd $WORK_DIR/scratch

      $JAVA_HOME/bin/java -showversion -server -cp $CLASSPATH -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=$DISPLAY,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JEMMY_JAR,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=$DISPLAY -DlocalHost=`uname -n` -Dprogram=jtreg com.sun.javatest.regtest.Main -v default -batch -params -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" "$TEST_BASE_PATH/$TEST"
      --- script end ---

      Test output (jtr part):
      =======================
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:build
      ----------messages:(3/92)----------
      command: build Basic
      reason: Named class compiled on demand
      elapsed time (seconds): 0.0030
      result: Passed. No need to compile: Basic.java

      #section:main
      ----------messages:(3/110)----------
      command: main Basic
      reason: User specified action: run main/timeout=240 Basic
      elapsed time (seconds): 39.373
      ----------System.out:(0/0)----------
      ----------System.err:(29/1329)----------
      FAILED: '%tp': Expected 'am', got 'pm'
      FAILED: '%tP': Expected 'AM', got 'PM'
      FAILED: '%Tp': Expected 'AM', got 'PM'
      FAILED: '%TP': Expected 'AM', got 'PM'
      FAILED: '%tp': Expected 'am', got 'pm'
      FAILED: '%tP': Expected 'AM', got 'PM'
      FAILED: '%Tp': Expected 'AM', got 'PM'
      FAILED: '%TP': Expected 'AM', got 'PM'
      java.lang.RuntimeException: 2501 tests: 8 failure(s), first
           at Basic.main(Basic.java:77)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:582)
           at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
           at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.RuntimeException: '%tp': Expected 'am', got 'pm'
           at Basic.setFirst(Basic.java:40)
           at Basic.fail(Basic.java:33)
           at Basic.ck(Basic.java:48)
           at BasicLong.test(BasicLong.java:25)
           at BasicLong.test(BasicLong.java:1155)
           at Basic.main(Basic.java:64)
           ... 6 more

      JavaTest Message: Test threw exception: java.lang.RuntimeException: 2501 tests: 8 failure(s), first
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: 2501 tests: 8 failure(s), first
      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 2501 tests: 8 failure(s), first

      Specific machine info:
      ======================
      Hostname: linux-1
      OS: Solaris 8 (sparc) (CDE)
      Hostname: linux-19
      OS: Windows 2003
      Hostname: linux-21
      OS: Windows XP Home

      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                iris Iris Clark
                Reporter:
                vshsunw Vsh Vsh (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: