JDK-4839927 : RegTest-test java/lang/Runtime/exec/StreamsSurviveDestroy.java failed
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.4.2
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_9
  • CPU: sparc
  • Submitted: 2003-03-31
  • Updated: 2003-04-01
  • Resolved: 2003-04-01
Related Reports
Relates :  
Relates :  
Description

Name: iaR10016			Date: 03/31/2003


Filed By       : J2SE-SQA [###@###.###
JDK            : JDK1.4.2-b19, JDK1.4.1, JDK1.4.0
Testbase       : RegTest-test
Platform[s]    : Solaris 9 (sparc)
switch/Mode    : -server
Falling test[s]: java/lang/Runtime/exec/StreamsSurviveDestroy.java

RegTest-test java/lang/Runtime/exec/StreamsSurviveDestroy.java test fails on JDK1.4.2, JDK1.4.1,
JDK1.4.0 on Solaris 9 (sparc) when running in "-server" mode.
This is a new test for the integrated in mantis bug 4820217.
I am not able to reproduce the failure in "-client" mode.

Test source location:
=====================
/java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/java/lang/Runtime/exec/StreamsSurviveDestroy.java

jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results/mantis/b19/regtest/sparc/sol9_sparc-server_smp_novo48/workDir/test/java/lang/Runtime/exec/StreamsSurviveDestroy.jtr

How to reproduce:
=================
Run the following script (you may need to change its variables)

--- script start ---
#!/bin/bash
RESULT_DIR=`pwd`
WORK_DIR=$RESULT_DIR/workDir/test
REPORT_DIR=$RESULT_DIR/reportDir
JT_HOME="/net/linux-15/export/home/java/jct"
JAVA_HOME="/net/linux-15/export/home/java/jdk1.4.0/sparc"
TEST_BASE_PATH="/net/linux-15/export/home/java/regtest/test"

TESTWITH=$JAVA_HOME
TESTJAVA=$JAVA_HOME

JTOPTS="-server"
TESTVMOPTS="-server"

CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar:$JT_HOME/jemmy/jemmy.jar"

export JAVA_HOME
export JT_HOME
export TESTWITH
export CLASSPATH

mkdir -p $WORK_DIR/scratch 2>&1
mkdir -p $WORK_DIR/jtData 2>&1
mkdir -p $REPORT_DIR 2>&1

#rm $WORK_DIR/jtData/ResultCache.jtw 2>&1

cd $WORK_DIR/scratch

$JAVA_HOME/bin/java -cp $CLASSPATH $JTOPTS -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="novo48" -Dprogram=jtreg com.sun.javatest.regtest.Main -a -v default -batch -params -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" "$TEST_BASE_PATH/java/lang/Runtime/exec/StreamsSurviveDestroy.java"
--- script end ---

Test output (jtr part):
=======================
----------System.out:(0/0)----------
----------System.err:(27/1141)----------
test
  EOF
  EOF
  exit: 15
testCloseBeforeDestroy
  out: Thrown as expected: java.io.IOException: Bad file number
  err: Thrown as expected: java.io.IOException: Bad file number
  exit: 15
testCloseAfterDestroy
  EOF
  EOF
  exit: 15
java.lang.Exception: out: Expected exception not thrown
        at StreamsSurviveDestroy$Copier.check(StreamsSurviveDestroy.java:69)
        at StreamsSurviveDestroy.testCloseAfterDestroy(StreamsSurviveDestroy.java:123)
        at StreamsSurviveDestroy.main(StreamsSurviveDestroy.java:156)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
        at java.lang.Thread.run(Thread.java:534)

JavaTest Message: Test threw exception: java.lang.Exception: out: Expected exception not thrown
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.Exception: out: Expected exception not thrown
result: Failed. Execution failed: `main' threw exception: java.lang.Exception: out: Expected exception not thrown

test result: Failed. Execution failed: `main' threw exception: java.lang.Exception: out: Expected exception not thrown

Specific machine info:
======================
Hostname: novo48
OS: Solaris 9 (sparc) (CDE)

======================================================================