-
Bug
-
Resolution: Fixed
-
P4
-
1.4.2
-
b24
-
x86
-
windows_98, windows_xp
-
Verified
Name: aaR10208 Date: 03/31/2003
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.4.2-b19
Testbase : RegTest-test
Platform[s] : Windows 98, Windows XP Pro
switch/Mode : -client
Falling test[s]: javax/sound/midi/File/OpenCrash.java
javax/sound/sampled/LinuxCrash/ClipLinuxCrash.java
sun/audio/AudioClipClose/AudioClipClose.java
javax/sound/sampled/Lines/16and32KHz/Has16and32KHz.java
javax/sound/sampled/Controls/ReverbControl/ReverbControlToString.java
The tests do not check if sound is installed on the box so they fail if no sound is installed.
Test source location:
=====================
/java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/javax/sound/midi/File/OpenCrash.java
/java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/javax/sound/sampled/LinuxCrash/ClipLinuxCrash.java
/java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/sun/audio/AudioClipClose/AudioClipClose.java
/java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/javax/sound/sampled/Lines/16and32KHz/Has16and32KHz.java
/java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/javax/sound/sampled/Controls/ReverbControl/ReverbControlToString.java
jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results/mantis/b19/regtest/win32/winXP_PRO_-server_smp_linux-16/workDir/test/javax/sound/midi/File/OpenCrash.jtr
/net/jtgb4u4c.sfbay/export/sail15/results/mantis/b19/regtest/win32/winXP_PRO_-server_smp_linux-16/workDir/test/javax/sound/sampled/LinuxCrash/ClipLinuxCrash.jtr
/net/jtgb4u4c.sfbay/export/sail15/results/mantis/b19/regtest/win32/winXP_PRO_-server_smp_linux-16/workDir/test/sun/audio/AudioClipClose/AudioClipClose.jtr
/net/jtgb4u4c.sfbay/export/sail15/results/mantis/b19/regtest/win32/winXP_PRO_-server_smp_linux-16/workDir/test/javax/sound/sampled/Lines/16and32KHz/Has16and32KHz.jtr
/net/jtgb4u4c.sfbay/export/sail15/results/mantis/b19/regtest/win32/winXP_PRO_-server_smp_linux-16/workDir/test/javax/sound/sampled/Controls/ReverbControl/ReverbControlToString.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.4.2/win32"
TEST_BASE_PATH="h:/java/regtest/test"
TEST=javax/sound/midi/File/OpenCrash.java
#TEST=javax/sound/sampled/LinuxCrash/ClipLinuxCrash.java
#TEST=sun/audio/AudioClipClose/AudioClipClose.java
#TEST=javax/sound/sampled/Lines/16and32KHz/Has16and32KHz.java
#TEST=javax/sound/sampled/Controls/ReverbControl/ReverbControlToString.java
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,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-16" -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):
=======================
----------System.out:(1/46)----------
Test usingSequencer.setSequence(InputStream)
----------System.err:(14/937)----------
javax.sound.midi.MidiUnavailableException: no audio device available for Java Sound Audio Engine
at com.sun.media.sound.AbstractPlayer.open(AbstractPlayer.java:139)
at OpenCrash.main(OpenCrash.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
at java.lang.Thread.run(Thread.java:534)
JavaTest Message: Test threw exception: javax.sound.midi.MidiUnavailableException: no audio device available for Java Sound Audio Engine
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: javax.sound.midi.MidiUnavailableException: no audio device available for Java Sound Audio Engine
result: Failed. Execution failed: `main' threw exception: javax.sound.midi.MidiUnavailableException: no audio device available for Java Sound Audio Engine
test result: Failed. Execution failed: `main' threw exception: javax.sound.midi.MidiUnavailableException: no audio device available for Java Sound Audio Engine
Specific machine info:
======================
Hostname: linux-16
OS: Windows XP Pro
Hostname: linux-17
OS: Windows 98
======================================================================
Name: iaR10016 Date: 08/29/2003
The following Regression-test tests fail due to the same reason:
javax/sound/sampled/Lines/BufferSizeCheck.java
javax/sound/sampled/LinuxCrash/ClipLinuxCrash2.java
javax/sound/sampled/LinuxCrash/SDLLinuxCrash.java
javax/sound/midi/Sequencer/MetaCallback.java
======================================================================
- relates to
-
JDK-4917200 REGRESSION: 5 sound regression tests fail on Windows
- Closed