-
Bug
-
Resolution: Fixed
-
P4
-
5.0
-
tiger
-
x86
-
windows_2003
-
Verified
Name: vsR10238 Date: 08/28/2003
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.5.0-b16
Testbase : Regression-test
Platform[s] : Windows (+MKS)
Falling test[s]:
sun/rmi/rmic/defaultStubVersion/run.sh
sun/rmi/rmic/defaultStubVersion/run.sh test from the Regression test suite for JDK1.5.0-b16, b17
fails on Windows (+MKS toolkit) because diff commands available on Windows with MKS fail
to compare binary files:
diff: File ./default_output/G1Impl_Stub.class is binary
The test passes on Solaris and Linux.
The test should implement another comparing procedure.
Test source location:
=====================
/java/re/jdk/1.5.0/promoted/latest/ws/j2se/test/sun/rmi/rmic/defaultStubVersion/run.sh
jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b16/regtest/win32/win2003_linux-19/workDir/test/sun/rmi/rmic/defaultStubVersion/run.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:/java/jct"
JAVA_HOME="h:/java/jdk1.5.0/win32"
TEST_BASE_PATH="h:/java/regtest.tiger/test"
TESTWITH=$JAVA_HOME
TESTJAVA=$JAVA_HOME
JTOPTS="-client"
TESTVMOPTS="-client"
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,windir=$windir,PATH=${SHELL%/*},CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-19" -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/sun/rmi/rmic/defaultStubVersion/run.sh"
--- script end ---
Script output:
==============
Test output (jtr part):
=======================
----------System.out:(0/0)----------
----------System.err:(8/652)*----------
+ defdir=./default_output
+ refdir=./reference_output
+ rm -rf ./default_output ./reference_output
+ mkdir ./default_output ./reference_output
+ d:/j2sdk1.5.0/bin/rmic -classpath C:\results_full\tiger\b16\regtest\win32\win2003_linux-19\workDir\test\classes\sun\rmi\rmic\defaultStubVersion -keep -d ./default_output G1Impl
+ d:/j2sdk1.5.0/bin/rmic -classpath C:\results_full\tiger\b16\regtest\win32\win2003_linux-19\workDir\test\classes\sun\rmi\rmic\defaultStubVersion -keep -d ./reference_output -v1.2 G1Impl
+ diff -r ./default_output ./reference_output
diff: File ./default_output/G1Impl_Stub.class is binary
result: Failed. Execution failed: exit code 4
test result: Failed. Execution failed: exit code 4
Specific machine info:
======================
Hostname: linux-19
OS: Windows 2003
======================================================================