United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6326204 TESTBUG: 6291034 testcase is failing with exit code1
JDK-6326204 : TESTBUG: 6291034 testcase is failing with exit code1

Details
Type:
Bug
Submit Date:
2005-09-20
Status:
Resolved
Updated Date:
2012-08-06
Project Name:
JDK
Resolved Date:
2005-10-13
Component:
other-libs
OS:
generic
Sub-Component:
other
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
1.4.2_10
Fixed Versions:
1.4.2_10 (b03)

Related Reports

Sub Tasks

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



Hardware and Software, Engineered to Work Together