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

4 reg tests try to compile in readonly filesystem

XMLWordPrintable

    • b02
    • generic
    • generic

        test/javax/security/auth/Subject/doAs/Test.sh fails since it tries to compile in a read only workspace. The test should use the scratch dir assigned by javatest instead.

        test/javax/security/auth/PrivateCredentialPermission/Subset.sh and
        test/com/sun/security/auth/module/Sample.sh and
        test/tools/javac/ExtDirs/ExtDirs.sh
        also fail with similar problems.

        these tests should also compile in scratch workspace
        jtr file from test/javax/security/auth/Subject/doAs/Test.sh :

        #section:script_messages
        ----------messages:(4/205)----------
        JDK under test: (/usr/java/j2sdk1.4.2_07)
        java version "1.4.2_07-ea"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-ea-b01)
        Java HotSpot(TM) Client VM (build 1.4.2_07-ea-b01, mixed mode)

        #section:shell
        ----------messages:(3/116)----------
        command: shell Test.sh
        reason: Assumed action based on file name: run shell Test.sh
        elapsed time (seconds): 3.827
        ----------System.out:(1/74)----------
        /net/latte/deployment1/regtests/142/test/javax/security/auth/Subject/doAs
        ----------System.err:(6/437)----------
        rm: cannot remove `Test.class': No such file or directory
        /net/latte/deployment1/regtests/142/test/javax/security/auth/Subject/doAs/Test.java:20: error while writing <anonymous Test$2>: /net/latte/deployment1/regtests/142/test/javax/security/auth/Subject/doAs/Test$2.class (Permission denied)
        public Object run() {
                                              ^
        1 error
        Exception in thread "main" java.lang.NoClassDefFoundError: Test
        result: Failed. Execution failed: exit code 1


        test result: Failed. Execution failed: exit code 1
        ###@###.### 10/6/04 11:00 GMT
        ###@###.### 10/6/04 23:09 GMT
        ###@###.### 10/6/04 23:40 GMT


        Two more tests that have the same problem :

        java/security/UnresolvedPermission/Serial.java
        sun/nio/cs/EUCTWBufferBoundaryDecodeTest.java

        (compiling on a readonly file system)

              asaha Abhijit Saha
              coffeys Sean Coffey
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: