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

REGRESSION: Regression-test sun/applet/Main/relativeFileUrlCheck.sh fails

    Details

    • Subcomponent:
    • Resolved In Build:
      b30
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description



      Name: iaR10016 Date: 11/04/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b26
                     (passes with JDK1.5.0-b25, JDK1.4.2-b28)
      Testbase : Regression-test
      Platform[s] : all
      switch/Mode : -client, -server
      Falling test: sun/applet/Main/relativeFileUrlCheck.sh

      Regression-test sun/applet/Main/relativeFileUrlCheck.sh test fails with JDK1.5.0-b26 and
      passes with JDK1.5.0-b25, JDK1.4.2-b28 on all platforms.

      It is expected that appletviewer will throw exception if url to open is not specified,
      but it does not happen in JDK1.5.0-b26.

      Please, try to execute "<JDK>/bin/appletviewer -Xnosecurity file:" command to reproduce the
      failure.

      Sample output with JDK1.5.0-b26 is:
      ...
      bugs> /net/linux-15/export/home/java/jdk1.5.0/linux/bin/java -version
      java version "1.5.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b26)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b26, mixed mode)
      bugs> /net/linux-15/export/home/java/jdk1.5.0/linux/bin/appletviewer -Xnosecurity file:

      Warning: disabling security.

      bugs>
      ...

      Sample output with JDK1.4.2 is:
      ...
      bugs> /net/linux-15/export/home/java/jdk1.4.2/linux/bin/java -version
      java version "1.4.2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
      Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
      bugs> /net/linux-15/export/home/java/jdk1.4.2/linux/bin/appletviewer -Xnosecurity file:

      Warning: disabling security.

      I/O exception while reading: (No such file or directory)
      bugs>
      ...

      Please, note that if I try to open url which does not exist, the JDK1.5.0-b26 appletviewer throws
      I/O exception as expected:
      ...
      bugs/4849923> /net/linux-15/export/home/java/jdk1.5.0/linux/bin/appletviewer -Xnosecurity file:jjj

      Warning: disabling security.

      I/O exception while reading: /net/linux-15/export/home/store/users/ira/bugs/4849923/jjj (No such file or directory)
      ...

      Test source location:
      =====================
      /java/re/jdk/1.5.0/promoted/latest/ws/j2se/test/sun/applet/Main/relativeFileUrlCheck.sh

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b26/regtest/x86/sol9_x86_gnome_smp_linux-6/workDir/test/sun/applet/Main/relativeFileUrlCheck.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/b26/binaries/solaris-i586"
      TEST_BASE_PATH="/java/re/jdk/1.5.0/promoted/all/b26/ws/j2se/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/b26/binaries/solaris-i586"
      #TEST_BASE_PATH="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b26/ws/j2se/test"

      TESTVMOPTS="-server"
      CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"
      TEST="sun/applet/Main/relativeFileUrlCheck.sh"

      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-6" -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:(8/966)----------
      test command: /net/linux-15/export/home/java/jdk1.5.0/x86/bin/appletviewer -J-Djava.security.policy=/net/linux-15/export/home/java/regtest.tiger/test/sun/applet/Main/java.policyfile:Applet.html
      --- passed as expected
      test command: /net/linux-15/export/home/java/jdk1.5.0/x86/bin/appletviewer
      -J-Djava.security.policy=/net/linux-15/export/home/java/regtest.tiger/test/sun/applet/Main/java.policyfile:/net/linux-15/export/home/results_full/tiger/b26/regtest/x86/sol9_x86_gnome_smp_linux-6/workDir/test/scratch/Applet.html
      --- passed as expected
      test command: /net/linux-15/export/home/java/jdk1.5.0/x86/bin/appletviewer -J-Djava.security.policy=/net/linux-15/export/home/java/regtest.tiger/test/sun/applet/Main/java.policy Applet.html
      --- passed as expected
      test command: /net/linux-15/export/home/java/jdk1.5.0/x86/bin/appletviewer -J-Djava.security.policy=/net/linux-15/export/home/java/regtest.tiger/test/sun/applet/Main/java.policy file:
      --- passed unexpectedly
      ----------System.err:(0/0)----------
      result: Failed. Execution failed: exit code 1

      Specific machine info:
      ======================
      Hostname: linux-1
      OS: Solaris 8 (sparc) (CDE)
      Hostname: linux-6
      OS: Solaris 9 (x86) (GNOME)

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ehawkessunw Eric Hawkes (Inactive)
                Reporter:
                irasunw Ira Ira (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: