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

REGRESSION: 2 RegTest-test tests fail

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux, solaris_8

      Description



      Name: asR10013 Date: 11/20/2002


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.4.2-b07
      Testbase : RegTest-test
      Platform[s] : Solaris, Linux, Windows
      Falling test[s]:
              java/sql/SQLPermission/SetLogStream.java
              java/sql/SQLPermission/SetLogWriter.java

      2 RegTest-test tests fail on JDK1.4.2-b07.

      The tests pass with JDK1.4.1 and JDK1.4.1_01.

      The cause of the failure is that the following permissions are required now:

      permission java.util.PropertyPermission "javax.accessibility.assistive_technologies", "read";
      permission java.util.PropertyPermission "javax.accessibility.screen_magnifier_present", "read";

      After I had added these permissions to java/sql/SQLPermission/SQLPermission.sp, the
      tests passed.

      As usual for the Regtest suite, you should hide your default policy files to reproduce the failure.

      Test source location:
      =====================
      /java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/test/java/sql/SQLPermission/SetLogStream.java
      /java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/test/java/sql/SQLPermission/SetLogWriter.java

      jtr file location:
      ==================
      /net/jtgb4u4c.eng/export/sail15/results/mantis/b07/regtest/x86/sol8_x86_linux-10/java/sql/SQLPermission/SetLogStream.jtr
      /net/jtgb4u4c.eng/export/sail15/results/mantis/b07/regtest/x86/sol8_x86_linux-10/java/sql/SQLPermission/SetLogWriter.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
      JT_HOME="/net/linux-15/export/home/java/jct"
      JAVA_HOME="/net/linux-15/export/home/java/jdk1.4.2/x86"
      TEST_BASE_PATH="/net/linux-15/export/home/java/regtest/test"

      TESTWITH=$JAVA_HOME
      TESTJAVA=$JAVA_HOME

      CLASSPATH=$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar

      export JAVA_HOME
      export JT_HOME
      export TESTWITH
      export CLASSPATH

      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 -cp $CLASSPATH -client -Xmixed -DenvVars=TESTJAVAHOME=$JAVA_HOME,DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,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/java/sql/SQLPermission/SetLogStream.java"

      --- script end ---

      Test output:
      ============
      JavaTest HTTPd - Success, active on port 1903
      JavaTest HTTPd server available at http://129.144.234.222:1903/
      runner starting test: java/sql/SQLPermission/SetLogStream.java
      runner finished test: java/sql/SQLPermission/SetLogStream.java
      Failed. Execution failed: Applet thread threw exception: java.security.AccessControlException: access denied (java.util.PropertyPermission javax.accessibility.assistive_technologies read)
      Test results: failed: 1
      Report written to /home/vsh/jck/regtest/reportDir/report.html
      Results written to /home/vsh/jck/regtest/workDir/test
      Error: Some tests failed or other problems occurred.


      Specific machine info:
      ======================
      Hostname: linux-10
      OS: Solaris 8 (x86)

      Hostname: linux-12
      OS: RH Linux 7.2


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

        Attachments

          Activity

            People

            • Assignee:
              jbrucesunw Jonathan Bruce (Inactive)
              Reporter:
              alssunw Als Als (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: