Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4772475

TEST_BUG: 4 Regtest-test javax/sound/sampled tests fail with no sound device

XMLWordPrintable

    • b12
    • x86, sparc
    • linux, solaris_8, windows_98
    • Verified



      Name: iaR10016 Date: 11/01/2002


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.4.2-b04
      JCK : RegTest-test
      Platform[s] : RedHat Linux 7.3, Windows 98, Solaris Sparc, Solaris x86
                       (the tests fail on any computer without a sound device)
      Falling tests : javax/sound/sampled/Clip/Duration/ClipDuration.java
                       javax/sound/sampled/Clip/Endpoint/ClipSetEndPoint.java
                       javax/sound/sampled/Controls/FloatControl/FloatControlBug.java
                       javax/sound/sampled/Controls/ReverbControl/SimpleMidiPlayer.java

      It would be better if these tests performed any analysis whether a sound device existed on the computer.
      Please, see bug 4742021 for more details.

      Test source location:
      =====================
      /java/re/jdk/1.4.2/latest/ws/j2se/test/javax/sound/sampled/Clip/Duration/ClipDuration.java
      /java/re/jdk/1.4.2/latest/ws/j2se/test/javax/sound/sampled/Clip/EndPoint/ClipSetEndPoint.java
      /java/re/jdk/1.4.2/latest/ws/j2se/test/javax/sound/sampled/Controls/FloatControl/FloatControlBug.java
      /java/re/jdk/1.4.2/latest/ws/j2se/test/javax/sound/sampled/Controls/ReverbControl/SimpleMidiPlayer.java

      jtr file location:
      ==================
      /net/jtgb4u4c.eng/export/sail15/results/mantis/b04/regtest/sparc/sol8_sparc_novo48/workDir/test/javax/sound/sampled/Clip/Duration/ClipDuration.jtr
      /net/jtgb4u4c.eng/export/sail15/results/mantis/b04/regtest/sparc/sol8_sparc_novo48/workDir/test/javax/sound/sampled/Clip/EndPoint/ClipSetEndPoint.jtr
      /net/jtgb4u4c.eng/export/sail15/results/mantis/b04/regtest/sparc/sol8_sparc_novo48/workDir/test/javax/sound/sampled/Controls/FloatControl/FloatControlBug.jtr
      /net/jtgb4u4c.eng/export/sail15/results/mantis/b04/regtest/sparc/sol8_sparc_novo48/workDir/test/javax/sound/sampled/Controls/ReverbControl/SimpleMidiPlayer.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its TESTJAVA and TEST_BASE variables)
      on the machine which does not have a sound device

      --- script start ---
      #!/bin/sh
      TESTJAVA="/net/jdk/export/disk8/local.java/jdk1.4.2/linux-i386"
      TEST_BASE="/java/re/jdk/1.4.2/latest/ws/j2se/"
      TEST_PATH="$TEST_BASE/test/javax/sound/sampled/Clip/Duration"
      TEST_NAME="ClipDuration"
      $TESTJAVA/bin/javac -d . $TEST_PATH/$TEST_NAME.java
      $TESTJAVA/bin/java -showversion $TEST_NAME
      --- script end ---

      Test output
      ===========

      java version "1.4.2-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b04)
      Java HotSpot(TM) Client VM (build 1.4.2-beta-b04, mixed mode)

      javax.sound.sampled.LineUnavailableException: Audio Device Unavailable
       at com.sun.media.sound.HeadspaceMixer.nResume(Native Method)
       at com.sun.media.sound.HeadspaceMixer.implOpen(HeadspaceMixer.java:377)
       at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:286)
       at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:323)
       at com.sun.media.sound.MixerClip.open(MixerClip.java:156)
       at com.sun.media.sound.MixerClip.open(MixerClip.java:291)
       at ClipDuration.run(ClipDuration.java:33)
       at ClipDuration.main(ClipDuration.java:51)
      Exception in thread "main" java.lang.Exception: Test threw exception
       at ClipDuration.main(ClipDuration.java:56)

      Specific machine info:
      ======================
      Hostname: novo48
      OS: Solaris 8 (Sparc)

      Hostname: Linux-17
      OS: Windows 98

      Hostname: linux-19
      OS: RedHat Linux 7.3

      ======================================================================

            fbomerssunw Florian Bomers (Inactive)
            irasunw Ira Ira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: