JDK-6326204 : TESTBUG: 6291034 testcase is failing with exit code1
  • Type: Bug
  • Component: other-libs
  • Sub-Component: other
  • Affected Version: 1.4.2_10
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-09-20
  • Updated: 2012-08-06
  • Resolved: 2005-10-13
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_10 b03Fixed
Description
6291034 testcase is failing with exit code1. This testcase is fixed in 1.4.2_10-b02 but failing with 1.4.2_10-b02.

JDK Information:
----------------
$/export/updates/jdks/j2sdk1.4.2_10/bin/java -version
java version "1.4.2_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b02)
Java HotSpot(TM) Client VM (build 1.4.2_10-b02, mixed mode)

How to reproduce:
-----------------
Copy the directory from the following workspace 
Master WS:
/net/shiva.sfbay/test/MyTestArea/JDK1.4.2/workspace_142/test/CTE_REGTEST/Generic/6291034 
Child WS:
/net/urts071.india/export6/testSuites/Regression/workspace_142/test/CTE_REGTEST/Generic/6291034

Compile DeleteOnExitTest.java
Run DeleteOnExitTest.sh file

OUTPUT:
------
Files before test: 8
iis = javax.imageio.stream.FileCacheImageInputStream@b162d5
ios = javax.imageio.stream.FileCacheImageOutputStream@110b053
Files after test: 10
+ [ 0 -ne 0 ]
+ + ls
+ wc -l
numfiles1=       8
+ [ 7 -ne 8 ]
+ echo Test fails: tmp file exists!
Test fails: tmp file exists!
+ exit 1

Directly with DeleteOnExitTest.java file:
-----------------------------------------
IF DeleteOnExitTest.java is executed directly exit code is 0
/export/updates/jdks/j2sdk1.4.2_10/bin/java -Djava.io.tmpdir=. DeleteOnExitTest ./animdog.gif ./output.png
tmp: .
tmpDir is .
Files before test: 8
iis = javax.imageio.stream.FileCacheImageInputStream@b162d5
ios = javax.imageio.stream.FileCacheImageOutputStream@110b053
Files after test: 10
bash-3.00# echo $?
0

NOTE:
-----
In DeleteOnExitTest.java file it is checking if number of files are equal before and after then test should Fail. But in DeleteOnExitTest.sh file is doing other way.

Comments
EVALUATION Looks like a request to update this testcase never made through to the master workspace. Will ensure this gets updated shortly. Attaching the new testcase also. (one line addition)
2005-09-20