JDK-6174810 : 4 reg tests try to compile in readonly filesystem
  • Type: Bug
  • Component: other-libs
  • Sub-Component: other
  • Affected Version: 1.4.2_07
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-10-06
  • Updated: 2012-08-06
  • Resolved: 2004-12-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2_07 b02Fixed
Related Reports
Relates :  
Description
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)


Comments
EVALUATION Tests are from FCS workspace. Compiling .java files into testsuite directory which is not desired. Testsuite on read-only filesystem will fail these tests. Modified to compile in temp work directory during test execution. ###@###.### 10/6/04 22:49 GMT ###@###.### 10/6/04 23:40 GMT
06-10-2004