-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
b31
-
x86
-
linux, windows_xp
-
Verified
Name: iaR10016 Date: 11/05/2003
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.5.0-b26
Testbase : Regression-test
Platform[s] : Linux, Windows
switch/Mode : -client, -server
Falling test: sun/applet/Main/relativeFileUrlCheck.sh
Regression-test sun/applet/Main/relativeFileUrlCheck.sh should fail on Linux and Windows
platforms because of the bug 4948982.
However, the test incorrectly passes on my Linux and Windows systems.
Here is the code fragment from the test source:
--------- sun/applet/Main/relativeFileUrlCheck.sh ---------
...
82 # "appletviewer"
83 echo "test command: ${AV} file:"
84 ${AV} file: 2> ${TMP1}
85 result=$?
86 expectFail ${result}
...
-----------------------------------------------------------
Problem is that ${TMP1} variable is not defined in the script, so command from the line 84
reports "Ambigous redirect" and return 1 which is expected result.
Test source location:
=====================
/java/re/jdk/1.5.0/promoted/latest/ws/j2se/test/sun/applet/Main/relativeFileUrlCheck.sh
jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b26/regtest/linux/redhat_advserver21_gnome_smp_linux-24/workDir/test/sun/applet/Main/relativeFileUrlCheck.jtr
How to reproduce:
=================
Run the following script on Linux (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
#Paths in Java Software:
JT_HOME="/java/re/jct-tools/3.1.2/archive/fcs/binaries"
JEMMY_JAR="/net/jdk/export/jpse04/Jemmy/jemmy.jar"
JAVA_HOME="/java/re/jdk/1.5.0/promoted/all/b26/binaries/linux"
TEST_BASE_PATH="/java/re/jdk/1.5.0/promoted/all/b26/ws/j2se/test"
#Alternative paths outside Java Software:
#JT_HOME="/net/koori.sfbay/onestop/jct-tools/3.1.2/archive/fcs/binaries"
#JEMMY_JAR="/net/jdk/export/jpse04/Jemmy/jemmy.jar"
#JAVA_HOME="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b26/binaries/solaris-i586"
#TEST_BASE_PATH="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b26/ws/j2se/test"
TESTVMOPTS="-server"
CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"
TEST="sun/applet/Main/relativeFileUrlCheck.sh"
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 -server -cp $CLASSPATH -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="linux-6" -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/$TEST"
--- script end ---
Test output (jtr part):
=======================
#section:shell
----------messages:(3/136)----------
command: shell relativeFileUrlCheck.sh
reason: User specified action: run shell relativeFileUrlCheck.sh
elapsed time (seconds): 7.783
----------System.out:(8/998)----------
test command: /net/linux-15/export/home/java/jdk1.5.0/linux/bin/appletviewer -J-Djava.security.policy=/net/linux-15/export/home/java/regtest.tiger/test/sun/applet/Main/java.policyfile:Applet.html
--- passed as expected
test command: /net/linux-15/export/home/java/jdk1.5.0/linux/bin/appletviewer
-J-Djava.security.policy=/net/linux-15/export/home/java/regtest.tiger/test/sun/applet/Main/java.policyfile:/.automount/linux-15/root/export/home/results_full/tiger/b26/regtest/linux/redhat_advserver21_gnome_smp_linux-24/workDir/test/scratch/Applet.html
--- passed as expected
test command: /net/linux-15/export/home/java/jdk1.5.0/linux/bin/appletviewer -J-Djava.security.policy=/net/linux-15/export/home/java/regtest.tiger/test/sun/applet/Main/java.policy Applet.html
--- passed as expected
test command: /net/linux-15/export/home/java/jdk1.5.0/linux/bin/appletviewer -J-Djava.security.policy=/net/linux-15/export/home/java/regtest.tiger/test/sun/applet/Main/java.policy file:
--- failed as expected
----------System.err:(1/119)----------
/net/linux-15/export/home/java/regtest.tiger/test/sun/applet/Main/relativeFileUrlCheck.sh: ${TMP1}: ambiguous redirect
result: Passed. Execution successful
Specific machine info:
======================
Hostname: linux-12
OS: Suse Linux 8.2 (GNOME2)
======================================================================
- relates to
-
JDK-4948982 REGRESSION: Regression-test sun/applet/Main/relativeFileUrlCheck.sh fails
-
- Closed
-