-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.4.1
-
sparc
-
generic
Filed By : J2SE-SQA [###@###.###
JDK : 1.4.1-beta-b11
JCK : jck1.4
Platform[s] : sparc
switch/Mode : headless
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Failing Test :
api/javax_swing/JPopupMenu/descriptions.html#set_isXXX
Test source location:
=====================
/net/jtgb4u4c.sfbay/export/sail16/JCK/jck14/JCK-runtime-14/tests/api/javax_swing/JPopupMenu/set_isXXXTests.java
jtr file location:
==================
file:///net/jtgb4u4c/export/sail16/results/hopper/b11/jck14/sparc/s8_client_headless_jtg-s119/workDir/api/javax_swing/JPopupMenu/descriptions_set_isXXX.jtr
How to reproduce:
====================
run attached script
JPopupMenu.ksh
--------Script START---------------------
#!/bin/ksh
SWITCH=${1+$@}
JDK=/net/jdk/export/disk8/local.java/jdk1.4.1
TESTBASE=/net/jdk/export/disk8/local.java/jck1.4
JCK=${TESTBASE}/JCK-runtime-14
executeClass="javasoft.sqe.tests.api.javax.swing.JPopupMenu.set_isXXXTests"
executeClassArgs="-TestCaseID ALL"
#executeTestURL=""
#headless=false
headless=true
DISPLAY=""
export DISPLAY
#executeContextArgs is used for vm testing.
executeContextArgs=
case `uname -s` in
SunOS)
ARCH=`uname -p`
case $ARCH in
sparc)
sharedJDK=$JDK/solaris-sparc
;;
i386)
sharedJDK=$JDK/solaris-i586
;;
esac
;;
Linux)
sharedJDK=$JDK/linux-i586
ARCH=linux
;;
esac
CLASSPATH=${JCK}/classes:${JCK}/javatest.jar
DISPLAY=${DISPLAY-$HOST:0.0}
if `echo $SWITCH|grep "\-d64" >/dev/null`; then
sharedJDK=$JDK/solaris-sparcv9
LD_LIBRARY_PATH=${JCK}/lib/sparcv9
else
LD_LIBRARY_PATH=${JCK}/lib/${ARCH}
fi
PATH=$JDK/bin:$sharedJDK/bin:$PATH
export PATH CLASSPATH DISPLAY LD_LIBRARY_PATH
echo
java ${SWITCH} -version
echo
((x=0))
while (( $x != 1 )) do
echo testing $x
java ${SWITCH} -verify -Xfuture -DDISPLAY="" -Djava.awt.headless=$headless -Djava.security.policy=${JCK}/lib/jck.policy -Djava.security.auth.policy=${JCK}/lib/jck.auth.policy -Djava.security.auth.login.config=${JCK}/lib/jck.auth.login.config -Djava.rmi.activation.port=${executeClass} ${executeClass} ${excludeCmd} ${executeClassArgs} ${executeContextArgs} ${executeTestURL}
if [[ $? == "95" ]]; then
echo pass
else
echo failed
fi
(( x = $x + 1 ))
done
--------Script END----------------------
Test output:
=============
JPopupMenu2013: Passed. OKAY
JPopupMenu2014: Passed. OKAY
JPopupMenu2015: Failed. Unexpected java.awt.HeadlessException thrown
JPopupMenu2016: Passed. OKAY
JPopupMenu2017: Passed. OKAY
STATUS:Failed.tests: 5; passed: 4; failed: 1; first test case failure: JPopupMenu2015
failed
Specific Machine Info:
=====================
SunOS jtg-s117 5.7 Generic_106541-18 sun4u sparc SUNW,Ultra-60
SunOS jtg-s115 5.8 Generic_108528-14 sun4u sparc SUNW,Ultra-60
SunOS jtg-s121 5.9 Generic sun4u sparc SUNW,Ultra-2
JDK : 1.4.1-beta-b11
JCK : jck1.4
Platform[s] : sparc
switch/Mode : headless
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Failing Test :
api/javax_swing/JPopupMenu/descriptions.html#set_isXXX
Test source location:
=====================
/net/jtgb4u4c.sfbay/export/sail16/JCK/jck14/JCK-runtime-14/tests/api/javax_swing/JPopupMenu/set_isXXXTests.java
jtr file location:
==================
file:///net/jtgb4u4c/export/sail16/results/hopper/b11/jck14/sparc/s8_client_headless_jtg-s119/workDir/api/javax_swing/JPopupMenu/descriptions_set_isXXX.jtr
How to reproduce:
====================
run attached script
JPopupMenu.ksh
--------Script START---------------------
#!/bin/ksh
SWITCH=${1+$@}
JDK=/net/jdk/export/disk8/local.java/jdk1.4.1
TESTBASE=/net/jdk/export/disk8/local.java/jck1.4
JCK=${TESTBASE}/JCK-runtime-14
executeClass="javasoft.sqe.tests.api.javax.swing.JPopupMenu.set_isXXXTests"
executeClassArgs="-TestCaseID ALL"
#executeTestURL=""
#headless=false
headless=true
DISPLAY=""
export DISPLAY
#executeContextArgs is used for vm testing.
executeContextArgs=
case `uname -s` in
SunOS)
ARCH=`uname -p`
case $ARCH in
sparc)
sharedJDK=$JDK/solaris-sparc
;;
i386)
sharedJDK=$JDK/solaris-i586
;;
esac
;;
Linux)
sharedJDK=$JDK/linux-i586
ARCH=linux
;;
esac
CLASSPATH=${JCK}/classes:${JCK}/javatest.jar
DISPLAY=${DISPLAY-$HOST:0.0}
if `echo $SWITCH|grep "\-d64" >/dev/null`; then
sharedJDK=$JDK/solaris-sparcv9
LD_LIBRARY_PATH=${JCK}/lib/sparcv9
else
LD_LIBRARY_PATH=${JCK}/lib/${ARCH}
fi
PATH=$JDK/bin:$sharedJDK/bin:$PATH
export PATH CLASSPATH DISPLAY LD_LIBRARY_PATH
echo
java ${SWITCH} -version
echo
((x=0))
while (( $x != 1 )) do
echo testing $x
java ${SWITCH} -verify -Xfuture -DDISPLAY="" -Djava.awt.headless=$headless -Djava.security.policy=${JCK}/lib/jck.policy -Djava.security.auth.policy=${JCK}/lib/jck.auth.policy -Djava.security.auth.login.config=${JCK}/lib/jck.auth.login.config -Djava.rmi.activation.port=${executeClass} ${executeClass} ${excludeCmd} ${executeClassArgs} ${executeContextArgs} ${executeTestURL}
if [[ $? == "95" ]]; then
echo pass
else
echo failed
fi
(( x = $x + 1 ))
done
--------Script END----------------------
Test output:
=============
JPopupMenu2013: Passed. OKAY
JPopupMenu2014: Passed. OKAY
JPopupMenu2015: Failed. Unexpected java.awt.HeadlessException thrown
JPopupMenu2016: Passed. OKAY
JPopupMenu2017: Passed. OKAY
STATUS:Failed.tests: 5; passed: 4; failed: 1; first test case failure: JPopupMenu2015
failed
Specific Machine Info:
=====================
SunOS jtg-s117 5.7 Generic_106541-18 sun4u sparc SUNW,Ultra-60
SunOS jtg-s115 5.8 Generic_108528-14 sun4u sparc SUNW,Ultra-60
SunOS jtg-s121 5.9 Generic sun4u sparc SUNW,Ultra-2
- duplicates
-
JDK-4680785 PIT: JPopupMenu.setVisible(true) throws HeadlessException in headless mode
-
- Closed
-