-
Bug
-
Resolution: Fixed
-
P3
-
1.4.2
-
rc
-
itanium
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2071121 | 5.0 | Abhijit Saha | P3 | Closed | Fixed | tiger |
Name: vsR10238 Date: 06/18/2003
Filed By : J2SE-SQA [###@###.###
Testbase : Regression-CTE
Platform[s] : RH Linux 2.1 Advanced Server (64 bit)
Falling test[s]:
CTE_REGTEST/Generic/4514097/PingPong.java
RegTest-CTE CTE_REGTEST/Generic/4514097/PingPong.java test fails on RH Linux 2.1 Advanced Server (64 bit).
Here is the part from CTE_REGTEST/Generic/4514097/Test4514097.sh:
if [ -f ${FILE_LOCATION}${FS}JDK64BIT ]
then
BIT_FLAG="-d64"
if [ $OS = "i386" -o $OS = "Windows" ]
then
echo "Test Passed for 64 bit Solaris X86, Windows platform"
exit 0
fi
${TESTJAVA}${FS}bin${FS}jar -xvf ${TESTSRC}${FS}libso64.jar
else
${TESTJAVA}${FS}bin${FS}jar -xvf ${TESTSRC}${FS}libso.jar
fi
The test fails because the linux 64-bit java version does not recognize -d64 flag.
Test source location:
=====================
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4514097/PingPong.java
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="/net/jtgb4u4c/export/sail16/jct-tools/3.1.1"
#JAVA_HOME=/net/jtgb4u4c/export/sail16/JDK/1.4.1-b21/linux-ia64
JAVA_HOME="/export/j2sdk1.4.2"
#JAVA_HOME="/export/j2sdk1.4.2-b26"
#JAVA_HOME="/export/j2sdk1.5.0"
TEST_BASE_PATH="/net/jtgb4u4c/export/sail16/TB/Hardcopy/Regression/1.4.2/cte"
#TEST_BASE_PATH="/net/jtgb4u4c/export/sail16/vsh/scripts/5/Regression/cte"
JEMMY_JAR=/net/jtgb4u4c/export/sail16/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 -cp $CLASSPATH $JTOPTS \
-DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,\
DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,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/4514097/PingPong.java"
--- script end ---
Script output:
==============
Test output (jtr part):
=======================
#section:shell
----------messages:(3/130)----------
command: shell Test4514097.sh
reason: User specified action: run shell/timeout=240 Test4514097.sh
elapsed time (seconds): 1.178
----------System.out:(3/82)----------
extracted: Linux-libdev1.so
extracted: sparc-libdev1.so
Invalid output, check it.
----------System.err:(1/30)----------
java full version "1.4.2-b28"
result: Failed. Execution failed: exit code 1
test result: Failed. Execution failed: exit code 1
Test output (test.out)
======================
Unrecognized option: -d64
Could not create the Java virtual machine.
Specific machine info:
======================
Hostname: JCC-ITANIUM-01
OS: RedHat Linux 2.1 Advanced Server
======================================================================
- backported by
-
JDK-2071121 RegTest-CTE PingPong.java doesn't work properly on 64-bit linux
-
- Closed
-