test/javax/imageio/stream/StreamCloserLeak/run_test.sh

Print this page

        

*** 188,205 **** if [ $? -ne 0 ] ; then fail "Unable to create temp directory." fi # Verify that all classoladers are destroyed ! ${TESTJAVA}/bin/java -cp Test.jar test.Main if [ $? -ne 0 ] ; then fail "Test FAILED: some classloaders weren't destroyed." fi # Verify that ImageIO shutdown hook works correcly ! ${TESTJAVA}/bin/java -cp Test.jar -DforgetSomeStreams=true test.Main if [ $? -ne 0 ] ; then fail "Test FAILED: some classloaders weren't destroyed of shutdown hook failed." fi # sanity check: verify that all cache files were deleted --- 188,205 ---- if [ $? -ne 0 ] ; then fail "Unable to create temp directory." fi # Verify that all classoladers are destroyed ! ${TESTJAVA}/bin/java ${TESTVMOPTS} ${TESTJAVAOPTS} -cp Test.jar test.Main if [ $? -ne 0 ] ; then fail "Test FAILED: some classloaders weren't destroyed." fi # Verify that ImageIO shutdown hook works correcly ! ${TESTJAVA}/bin/java ${TESTVMOPTS} ${TESTJAVAOPTS} -cp Test.jar -DforgetSomeStreams=true test.Main if [ $? -ne 0 ] ; then fail "Test FAILED: some classloaders weren't destroyed of shutdown hook failed." fi # sanity check: verify that all cache files were deleted