-
Bug
-
Resolution: Fixed
-
P3
-
1.4.2
-
rc
-
sparc
-
solaris_9
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2066010 | 5.0 | Abhijit Saha | P3 | Closed | Fixed | tiger |
Name: asR10013 Date: 03/05/2003
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.4.2-b17
Testbase : RegTest-CTE
Platform[s] : Solaris 9 (sparc) (CDE)
switch/Mode : -server
Falling test[s]:
CTE_REGTEST/Generic/4811862/Test4811862.sh
RegTest-cte CTE_REGTEST/Generic/4811862/Test4811862.sh test fails on JDK1.4.2-b17
The test should not be executed on non-FCS builds but performs incorrect analysis
of this fact:
---------- from Test4811862.sh ------------>
CHAR=`${TESTJAVA}${FS}bin${FS}java -version 2>&1 | grep "^java version" | cut -f3 -d ' ' | sed "s/\"//g" | cut -c9-9`
if [ "X${CHAR}" = "X-" ]
then
## Non-Fcs builds. java version shows string x.x.x_xx-xx
## where update release fcs version shows x.x.x_xx
## where product fcs version shows x.x.x
echo "Test skipped for Non-Fcs version of builds"
echo "Localized version of licence in not included in non-fcs builds"
exit 0
fi
<---------- from Test4811862.sh ------------
java -version returns :
java version "1.4.2-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b17)
Java HotSpot(TM) Client VM (build 1.4.2-beta-b17, mixed mode)
And CHAR is assigned to 't' instead of '-'
The test passes on Windows because the required license files are provided with the Win32 build.
Test source location:
=====================
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4811862/Test4811862.sh
jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results/mantis/b17/regtest/sparc/sol9_sparc-server_smp_novo48/workDir/cte/CTE_REGTEST/Generic/4811862/Test4811862.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="/net/linux-15/export/home/java/jct"
JAVA_HOME="/net/linux-15/export/home/java/jdk1.4.2/sparc"
TEST_BASE_PATH="/net/linux-15/export/home/java/regtest/cte"
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/CTE_REGTEST/Generic/4811862/Test4811862.sh"
--- script end ---
Script output:
==============
Test output (jtr part):
=======================
----------System.out:(1/115)----------
Missing : LICENSE_de LICENSE_es LICENSE_fr LICENSE_it LICENSE_ja LICENSE_ko LICENSE_sv LICENSE_zh_CN LICENSE_zh_TW
----------System.err:(1/35)----------
java full version "1.4.2-beta-b17"
result: Failed. Execution failed: exit code 1
test result: Failed. Execution failed: exit code 1
Specific machine info:
======================
Hostname: novo48
OS: Solaris 9 (sparc) (CDE)
======================================================================
- backported by
-
JDK-2066010 RegTest-cte CTE_REGTEST/Generic/4811862/Test4811862.sh fails
-
- Closed
-