-
Bug
-
Resolution: Fixed
-
P3
-
1.4.2, 5.0
-
tiger
-
x86, itanium
-
windows, windows_2003
-
Verified
Name: vsR10238 Date: 06/18/2003
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.4.2
Testbase : RegTest-CTE
Platform[s] : Windows 2003 Enterprise
Falling test[s]:
CTE_REGTEST/Generic/4498820/FileDialogDemo.java
CTE_REGTEST/Generic/4294758/StreamPPApplet.java
CTE_REGTEST/Generic/4802409/Test4802409.sh
CTE_REGTEST/Generic/4494358/S017.java
CTE_REGTEST/Generic/4280606/CrashTest.java
CTE_REGTEST/Generic/4510822/Test4510822.sh
CTE_REGTEST/Generic/4599491/DynamicFontLoadingTest.java
CTE_REGTEST/Generic/4765019/ThreadTest.java
CTE_REGTEST/Generic/4482613/Test4482613.sh
Regression-cte tests fail on Windows 2003 (64 bit) due to kill problems.
To kill children processes, tests from the Regression-CTE test suite
usually use a technique similar to the following:
JAVAPID=`ps | grep FileDialogDemo | grep "Xrs" | awk '{print $1}'`
echo $JAVAPID
kill -s 9 $JAVAPID > $NULL 2>&1
Thus, the test assumes that the 'ps' command always displays
command arguments for processes but that is not true for Windows 2003 64 bit.
It seems that on this platform 'ps' does not display command line arguments
for 64 bit processes.
Another less significant problem is that such 'ps' usage may return several
PIDs including PIDs for processes which should not or must not be killed.
Test source location:
=====================
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4294758/StreamPPApplet.java
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4802409/Test4802409.sh
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4494358/S017.java
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4280606/CrashTest.java
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4498820/FileDialogDemo.java
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4510822/Test4510822.sh
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4599491/DynamicFontLoadingTest.java
JTR file location:
=====================
/net/jtgb4u4c/export/sail16/results.2/mantis/b26/regtest/win32/Win2003_server_jcc_itanium_02/workDir/cte/CTE_REGTEST/Generic/4294758/StreamPPApplet.jtr
/net/jtgb4u4c/export/sail16/results.2/mantis/b26/regtest/win32/Win2003_server_jcc_itanium_02/workDir/cte/CTE_REGTEST/Generic/4802409/Test4802409.jtr
/net/jtgb4u4c/export/sail16/results.2/mantis/b26/regtest/win32/Win2003_server_jcc_itanium_02/workDir/cte/CTE_REGTEST/Generic/4494358/S017.jtr
/net/jtgb4u4c/export/sail16/results.2/mantis/b26/regtest/win32/Win2003_server_jcc_itanium_02/workDir/cte/CTE_REGTEST/Generic/4280606/CrashTest.jtr
/net/jtgb4u4c/export/sail16/results.2/mantis/b26/regtest/win32/Win2003_server_jcc_itanium_02/workDir/cte/CTE_REGTEST/Generic/4498820/FileDialogDemo.jtr
/net/jtgb4u4c/export/sail16/results.2/mantis/b26/regtest/win32/Win2003_server_jcc_itanium_02/workDir/cte/CTE_REGTEST/Generic/4510822/Test4510822.jtr
/net/jtgb4u4c/export/sail16/results.2/mantis/b26/regtest/win32/Win2003_server_jcc_itanium_02/workDir/cte/CTE_REGTEST/Generic/4599491/DynamicFontLoadingTest.jtr
How to reproduce:
=================
Run the following script (you may need to change its variables)
--- script start ---
#!/bin/sh
RESULT_DIR=`pwd`
WORK_DIR=$RESULT_DIR/workDir/test
REPORT_DIR=$RESULT_DIR/reportDir
JT_HOME="h:/jct-tools/3.1.2"
JAVA_HOME="c:/j2sdk1.4.2"
#JAVA_HOME="z:/jdk/1.4.1/archive/fcs/binaries/windows-ia64"
#JAVA_HOME="z:/jdk/1.4.2/promoted/fcs/b27/binaries/windows-ia64"
#JAVA_HOME="z:/jdk/1.4.2/promoted/rc/b26/binaries/windows-ia64"
TEST_BASE_PATH="h:/Regression/1.4.2/cte"
JEMMY_JAR=h:/Jemmy/jemmy.jar
HOST=`uname -n`
TESTWITH=$JAVA_HOME
TESTJAVA=$JAVA_HOME
JTOPTS="-server"
TESTVMOPTS="-server"
CLASSPATH="$JT_HOME/classes;$JT_HOME/lib/javatest.jar;$JT_HOME/lib/jtreg.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 -version
$JAVA_HOME/bin/java -cp $CLASSPATH $JTOPTS -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,HOME=$HOME/.regtest,SystemRoot=d:/w2k,PATH=C:/PROGRA~2/MKSTOO~1/mksnt,CPAPPEND=$JEMMY_JAR,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="$HOST" -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/CTE_REGTEST/Generic/4498820/FileDialogDemo.java"
--- script end ---
Test output (jtr part):
=======================
----------System.out:(2/15)----------
Test Passed
----------System.err:(2/211)----------
cp: C:/results_full/mantis/b26/regtest/win64/Win2003_server_jcc_itanium_02/workDir/cte/classes/CTE_REGTEST/Generic/4498820/*.class: The system cannot find the file specified.
java full version "1.4.2-rc-b26"
result: Failed. Execution failed: Program `sh' interrupted! (timed out?)
test result: Failed. Execution failed: Program `sh' interrupted! (timed out?)
Specific machine info:
======================
Hostname: JCC-ITANIUM-02
OS: Windows 2003 Enterprise
======================================================================