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

TEST_BUG: Regression-cte CTE_REGTEST/Generic/4261506/Test.java fails

XMLWordPrintable

    • beta
    • generic
    • generic
    • Verified



      Name: iaR10016 Date: 10/22/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b24
      Testbase : Regression-cte
      Platform[s] : Linux, Solaric x86, Solaris sparc
                      (the test is not valid for Windows)
      switch/Mode : all
      Falling test : CTE_REGTEST/Generic/4261506/Test.java

      Regression-cte CTE_REGTEST/Generic/4261506/Test.java test fails with JDK1.5.0 if
      system date is set to October,6 - October,25. The test passes at any other dates.
      The reason of the failure is that the date of the switching between standard and
      summer time is different in the different time zones. The test does not take into
      account this fact and fails because of this reason.

      I have run the test with different system date set and got the following difference
      between test.out and gold.out files:

      - October,26:
      bugs/4261506> diff gold.out test.out
      bugs/4261506>

      - October, 25:
      ...
      bugs/4261506> diff gold.out test.out
      14,15c14,15
      < MSD
      < Moscow Daylight Time
      ---
       > MSK
       > Moscow Standard Time
      24c24
      < Eastern Standard Time (New South Wales)
      ---
       > Eastern Summer Time (New South Wales)
      27c27
      < Central Standard Time (South Australia/New South Wales)
      ---
       > Central Summer Time (South Australia/New South Wales)
      30c30
      < Load Howe Standard Time
      ---
       > Load Howe Summer Time
      33c33
      < Eastern Standard Time (New South Wales)
      ---
       > Eastern Summer Time (New South Wales)
      42c42
      < Central Standard Time (South Australia)
      ---
       > Central Summer Time (South Australia)
      45c45
      < Eastern Standard Time (Tasmania)
      ---
       > Eastern Summer Time (Tasmania)
      48c48
      < Eastern Standard Time (Victoria)
      ---
       > Eastern Summer Time (Victoria)
      54c54
      < Central Standard Time (South Australia/New South Wales)
      ---
       > Central Summer Time (South Australia/New South Wales)
      bugs/4261506>
      ...

      - October,22:
      ...
      bugs/4261506> diff gold.out test.out
      45c45
      < Eastern Standard Time (Tasmania)
      ---
       > Eastern Summer Time (Tasmania)
      bugs/4261506>
      ...

      Please, see also bug 4941615.

      Test source location:
      =====================
      /net/jdk/export/jpse04/Regression/1.5.0/test/CTE_REGTEST/Generic/4261506/Test.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b24/regtest/x86/sol8_x86_ow_linux-10/workDir/cte/CTE_REGTEST/Generic/4261506/Test.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"
      JEMMY_JAR="/net/jdk/export/jpse04/Jemmy/jemmy.jar"
      JAVA_HOME="/java/re/jdk/1.5.0/promoted/all/b24/binaries/solaris-i586"
      TEST_BASE_PATH="/net/jdk/export/jpse04/Regression/1.5.0/test"

      #Alternative paths outside Java Software:
      #JT_HOME="/net/koori.sfbay/onestop/jct-tools/3.1.2/archive/fcs/binaries"
      #JEMMY_JAR="/net/jdk/export/jpse04/Jemmy/jemmy.jar"
      #JAVA_HOME="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b24/binaries/solaris-i586"
      #TEST_BASE_PATH="/net/jdk/export/jpse04/Regression/1.5.0/test"

      #Alternative paths for the NSK site:
      #JT_HOME="/net/linux-15/export/home/java/jct"
      #JEMMY_JAR="$JT_HOME/jemmy/jemmy.jar"
      #JAVA_HOME="/net/linux-15/export/home/java/jdk1.5.0/x86"
      #TEST_BASE_PATH="/net/linux-15/export/home/java/regtest.tiger/cte"

      TESTVMOPTS="-client"
      CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"
      TEST="CTE_REGTEST/Generic/4261506/Test.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 -server -cp $CLASSPATH -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JEMMY_JAR,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-10" -Dprogram=jtreg com.sun.javatest.regtest.Main -a -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:shell
      ----------messages:(3/119)----------
      command: shell Test4261506.sh
      reason: User specified action: run shell Test4261506.sh
      elapsed time (seconds): 13.032
      ----------System.out:(0/0)----------
      ----------System.err:(1/35)----------
      java full version "1.5.0-beta-b24"
      result: Failed. Execution failed: exit code 1

      Specific machine info:
      ======================
      Hostname: linux-10
      OS: Solaris 8 (x86) (O/W)
      Hostname: linux-2
      OS: Suse Linux 8.2 (GNOME2)
      Hostname: linux-8
      OS: Solaris 10 (sparc) (CDE)

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

            busersunw Btplusnull User (Inactive)
            irasunw Ira Ira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: