United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6304433 : Test bug: regression test for bug 6291034 fails on all platforms.

Details
Type:
Bug
Submit Date:
2005-08-01
Status:
Resolved
Updated Date:
2011-01-19
Project Name:
JDK
Resolved Date:
2005-10-10
Component:
client-libs
OS:
generic
Sub-Component:
javax.imageio
CPU:
generic
Priority:
P5
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports

Sub Tasks

Description
The DeleteOnExitTest regression test fils on all platforms:

#Test Results (version 2)
#Fri Jul 29 00:05:58 PDT 2005
#checksum:5e8a34bfb747eaa6
#-----testdescription-----
$file=/net/jano/export/disk06/java2d/Java2D/test/javax/imageio/stream/DeleteOnExitTest.sh
$root=/net/jano/export/disk06/java2d/Java2D/test
keywords=bug6291034 shell
run=ASSUMED_ACTION shell DeleteOnExitTest.sh\n
source=DeleteOnExitTest.sh
title=Verify that temporary imageio files files are deleted on VM exit.

#-----environment-----

#-----testresult-----
description=file:///net/jano/export/disk06/java2d/Java2D/test/javax/imageio/stream/DeleteOnExitTest.sh
end=Fri Jul 29 00:05:58 PDT 2005
environment=regtest
execStatus=Failed. Execution failed: exit code 1
javatestOS=SunOS 5.10 (sparc)
javatestVersion=2.1.5
script=com.sun.javatest.regtest.RegressionScript 
sections=script_messages shell
start=Fri Jul 29 00:05:57 PDT 2005
status=Failed. Execution failed: exit code 1
test=javax/imageio/stream/DeleteOnExitTest.sh
work=/net/jcg-x86-14/export/Java2DBuilds/2005-07-28.mustang/results/Client_Nightly-Job_2D_REGRESSION_Solaris_Sparc_10GNOME32-en-2005-07-28-23-44-57-0155/javax/imageio/stream

#section:script_messages
----------messages:(4/369)----------
JDK under test: (/net/sqe1.sfbay.sun.com/quality2/swing/client-dtf/knight_ws/exec1/Client_Nightly-Job_2D_REGRESSION_Solaris_Sparc_10GNOME32-en-2005-07-28-23-44-57-0155/jdk)
java version "1.6.0-2d_awt_blade"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-2d_awt_blade-tdv_28_Jul_2005_21_16-b00)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b45, mixed mode)

#section:shell
----------messages:(3/139)----------
command: shell DeleteOnExitTest.sh 
reason: Assumed action based on file name: run shell DeleteOnExitTest.sh 
elapsed time (seconds): 1.46
----------System.out:(10/988)----------
TESTJAVA=/net/sqe1.sfbay.sun.com/quality2/swing/client-dtf/knight_ws/exec1/Client_Nightly-Job_2D_REGRESSION_Solaris_Sparc_10GNOME32-en-2005-07-28-23-44-57-0155/jdk
TESTSRC=/net/jano/export/disk06/java2d/Java2D/test/javax/imageio/stream
TESTCLASSES=/net/jcg-x86-14/export/Java2DBuilds/2005-07-28.mustang/results/Client_Nightly-Job_2D_REGRESSION_Solaris_Sparc_10GNOME32-en-2005-07-28-23-44-57-0155/classes/javax/imageio/stream
tmp: /net/jcg-x86-14/export/Java2DBuilds/2005-07-28.mustang/results/Client_Nightly-Job_2D_REGRESSION_Solaris_Sparc_10GNOME32-en-2005-07-28-23-44-57-0155/classes/javax/imageio/stream
tmpDir is /net/jcg-x86-14/export/Java2DBuilds/2005-07-28.mustang/results/Client_Nightly-Job_2D_REGRESSION_Solaris_Sparc_10GNOME32-en-2005-07-28-23-44-57-0155/classes/javax/imageio/stream
Files before test: 22
iis = javax.imageio.stream.FileCacheImageInputStream@16a9d42
ios = javax.imageio.stream.FileCacheImageOutputStream@fa7e74
Files after test: 24
Test fails: tmp file exists!
----------System.err:(0/0)----------
result: Failed. Execution failed: exit code 1


test result: Failed. Execution failed: exit code 1

                                    

Comments
EVALUATION

This regression test failure is caused by creation of output image file. This file was created after
counting existing files in work directory and was not deleted on regression test finish. So, after
regression test execution the work directory always contains one extra file even all temporary files
were deleted on VM exit.

The solution is to use byte array input/output streams instead of file input/output streams in order
to avoid creation of extra files in work directory.
                                     
2005-08-01



Hardware and Software, Engineered to Work Together