8275170: Some jtreg sound tests should be marked with sound keyword

Reviewed-by: kizune, serb, aivanov
This commit is contained in:
Phil Race 2022-05-24 17:53:43 +00:00
parent 45180633d3
commit 25669bb667
58 changed files with 63 additions and 4 deletions

View File

@ -11,11 +11,15 @@
# #
# A "headful" test requires a graphical environment to meaningfully # A "headful" test requires a graphical environment to meaningfully
# run. Tests that are not headful are "headless". # run. Tests that are not headful are "headless".
# A test flagged with key sound needs audio devices on the system, this
# may be accompanied by the headful keyword since audio device access
# is often linked to access to desktop resources and headful systems are
# also more likely to have audio devices (ie meaning both input and output)
# A test flagged with key "printer" requires a printer to succeed, else # A test flagged with key "printer" requires a printer to succeed, else
# throws a PrinterException or the like. # throws a PrinterException or the like.
# A test flagged with cgroups uses cgroups. # A test flagged with cgroups uses cgroups.
keys=2d dnd headful i18n intermittent printer randomness jfr cgroups keys=2d dnd headful sound i18n intermittent printer randomness jfr cgroups
# Tests that must run in othervm mode # Tests that must run in othervm mode
othervm.dirs=java/awt java/beans javax/accessibility javax/imageio javax/sound javax/swing javax/print \ othervm.dirs=java/awt java/beans javax/accessibility javax/imageio javax/sound javax/swing javax/print \

View File

@ -32,6 +32,7 @@ import javax.sound.midi.Synthesizer;
/** /**
* @test * @test
* @key sound
* @bug 4616517 * @bug 4616517
* @summary Receiver.send() does not work properly * @summary Receiver.send() does not work properly
*/ */

View File

@ -28,6 +28,7 @@ import javax.sound.midi.MidiUnavailableException;
/** /**
* @test * @test
* @key sound
* @bug 8068412 * @bug 8068412
*/ */
public final class InitializationHang { public final class InitializationHang {

View File

@ -31,6 +31,7 @@ import javax.sound.midi.Transmitter;
/** /**
* @test * @test
* @key sound
* @bug 4931387 * @bug 4931387
* @summary Add methods to MidiDevice to get list of Transmitters and Receivers * @summary Add methods to MidiDevice to get list of Transmitters and Receivers
*/ */

View File

@ -27,6 +27,7 @@ import javax.sound.midi.MidiUnavailableException;
/** /**
* @test * @test
* @key sound
* @bug 4356787 * @bug 4356787
* @summary MIDI device I/O is not working * @summary MIDI device I/O is not working
*/ */

View File

@ -28,6 +28,7 @@ import javax.sound.midi.Synthesizer;
/** /**
* @test * @test
* @key sound
* @bug 4903786 * @bug 4903786
* @summary MIDI OUT does not implement getMicrosecondPosition() consistently * @summary MIDI OUT does not implement getMicrosecondPosition() consistently
*/ */

View File

@ -31,6 +31,7 @@ import javax.sound.midi.Transmitter;
/** /**
* @test * @test
* @key sound
* @bug 4616517 * @bug 4616517
* @summary Receiver.send() does not work properly. Tests open/close behaviour * @summary Receiver.send() does not work properly. Tests open/close behaviour
* of MidiDevices. For this test, it is essential that the MidiDevice * of MidiDevices. For this test, it is essential that the MidiDevice

View File

@ -29,6 +29,7 @@ import javax.sound.midi.Transmitter;
/** /**
* @test * @test
* @key sound
* @bug 4616517 * @bug 4616517
* @summary Receiver.send() does not work properly * @summary Receiver.send() does not work properly
*/ */

View File

@ -28,6 +28,7 @@ import javax.sound.midi.Synthesizer;
/** /**
* @test * @test
* @key sound
* @bug 4914667 * @bug 4914667
* @summary Closing and reopening MIDI IN device on Linux throws * @summary Closing and reopening MIDI IN device on Linux throws
* MidiUnavailableException * MidiUnavailableException

View File

@ -39,6 +39,7 @@ import com.sun.media.sound.JDK13Services;
* @bug 4776511 * @bug 4776511
* @bug 4934509 * @bug 4934509
* @bug 4938236 * @bug 4938236
* @key sound
* @modules java.desktop/com.sun.media.sound * @modules java.desktop/com.sun.media.sound
* @run main/timeout=600 DefaultDevices * @run main/timeout=600 DefaultDevices
* @summary RFE: Setting the default MixerProvider * @summary RFE: Setting the default MixerProvider

View File

@ -30,6 +30,7 @@ import javax.sound.midi.Transmitter;
/** /**
* @test * @test
* @key sound
* @bug 4931400 * @bug 4931400
* @summary Clarify default connections in default sequencer * @summary Clarify default connections in default sequencer
*/ */

View File

@ -30,6 +30,7 @@ import javax.sound.midi.Track;
/** /**
* @test * @test
* @key sound
* @bug 4929955 * @bug 4929955
* @summary Sequence.getMicrosecondLength() returns wrong value * @summary Sequence.getMicrosecondLength() returns wrong value
*/ */

View File

@ -32,6 +32,7 @@ import javax.sound.midi.Track;
/** /**
* @test * @test
* @key sound
* @bug 5025549 * @bug 5025549
* @summary Verify that setLoopEndPoint throws IAE * @summary Verify that setLoopEndPoint throws IAE
*/ */

View File

@ -36,7 +36,7 @@ import javax.sound.midi.Track;
* @test * @test
* @bug 4347135 * @bug 4347135
* @summary MIDI MetaMessage callback inconsistent * @summary MIDI MetaMessage callback inconsistent
* @key intermittent * @key intermittent sound
* @run main/othervm MetaCallback * @run main/othervm MetaCallback
*/ */
public class MetaCallback implements MetaEventListener { public class MetaCallback implements MetaEventListener {

View File

@ -34,7 +34,7 @@ import javax.sound.midi.Track;
/** /**
* @test * @test
* @bug 4932841 * @bug 4932841
* @key intermittent * @key intermittent sound
* @summary Sequencer's recording feature does not work * @summary Sequencer's recording feature does not work
*/ */
public class Recording { public class Recording {

View File

@ -33,6 +33,7 @@ import javax.sound.midi.Track;
/** /**
* @test * @test
* @key sound
* @bug 5048381 * @bug 5048381
* @summary Sequencer doesn't create distinct messages when recording events. * @summary Sequencer doesn't create distinct messages when recording events.
*/ */

View File

@ -33,6 +33,7 @@ import javax.sound.midi.Track;
/** /**
* @test * @test
* @key sound
* @bug 5048381 * @bug 5048381
* @summary Sequencer records real time messages into the sequence * @summary Sequencer records real time messages into the sequence
*/ */

View File

@ -27,6 +27,7 @@ import javax.sound.midi.Sequencer;
/** /**
* @test * @test
* @key sound
* @bug 5001943 * @bug 5001943
* @summary Sequencer.startRecording throws unexpected NPE * @summary Sequencer.startRecording throws unexpected NPE
*/ */

View File

@ -28,6 +28,7 @@ import javax.sound.midi.Sequencer;
/** /**
* @test * @test
* @key sound
* @bug 4716740 * @bug 4716740
* @summary default sequencer does not set the tempo factor * @summary default sequencer does not set the tempo factor
*/ */

View File

@ -23,6 +23,7 @@
/** /**
* @test * @test
* @key sound
* @bug 6660470 * @bug 6660470
* @summary Tests that sequencer correctly opens/closes (implicitly) devices * @summary Tests that sequencer correctly opens/closes (implicitly) devices
* @author Alex Menkov * @author Alex Menkov

View File

@ -33,6 +33,7 @@ import javax.sound.midi.Sequencer;
/** /**
* @test * @test
* @key sound
* @bug 4713900 * @bug 4713900
* @summary default Sequencer allows to set Mute for invalid track * @summary default Sequencer allows to set Mute for invalid track
*/ */

View File

@ -34,6 +34,7 @@ import javax.sound.midi.Sequencer;
/** /**
* @test * @test
* @key sound
* @bug 4913027 * @bug 4913027
* @summary several Sequencer methods should specify behaviour on closed Sequencer * @summary several Sequencer methods should specify behaviour on closed Sequencer
*/ */

View File

@ -30,8 +30,9 @@ import javax.sound.midi.Track;
/** /**
* @test * @test
* @key sound
* @bug 4493775 * @bug 4493775
* @summary Sequncer method, setTickPosition(long) doesnot set the Tick position * @summary Sequencer method, setTickPosition(long) does not set the Tick position
*/ */
public class SetTickPosition { public class SetTickPosition {
private static boolean testPassed = true; private static boolean testPassed = true;

View File

@ -33,6 +33,7 @@ import javax.sound.midi.Track;
/** /**
* @test * @test
* @key sound
* @bug 4427890 * @bug 4427890
* @run main/othervm TickLength * @run main/othervm TickLength
* @summary Sequencer.getTickLength() and Sequence.getTickLength() report the * @summary Sequencer.getTickLength() and Sequence.getTickLength() report the

View File

@ -30,6 +30,7 @@ import javax.sound.sampled.Mixer;
/** /**
* @test * @test
* @key sound
* @bug 4429762 * @bug 4429762
* @summary Some instrument names in some soundbanks include bad extra characters * @summary Some instrument names in some soundbanks include bad extra characters
*/ */

View File

@ -38,6 +38,7 @@ import com.sun.media.sound.JDK13Services;
/** /**
* @test * @test
* @key sound
* @bug 4776511 * @bug 4776511
* @summary RFE: Setting the default MixerProvider. Test the retrieving of lines * @summary RFE: Setting the default MixerProvider. Test the retrieving of lines
* with defaut mixer properties. * with defaut mixer properties.

View File

@ -33,6 +33,7 @@ import javax.sound.sampled.Mixer;
/** /**
* @test * @test
* @key sound
* @bug 4946913 8178403 * @bug 4946913 8178403
* @summary DirectClip doesn't kill the thread correctly, sometimes * @summary DirectClip doesn't kill the thread correctly, sometimes
* @run main/othervm ClipCloseLoss * @run main/othervm ClipCloseLoss

View File

@ -33,6 +33,7 @@ import javax.sound.sampled.Mixer;
/** /**
* @test * @test
* @key sound
* @bug 4946945 * @bug 4946945
* @summary Crash in javasound while running TicTacToe demo applet tiger b26 * @summary Crash in javasound while running TicTacToe demo applet tiger b26
*/ */

View File

@ -29,6 +29,7 @@ import javax.sound.sampled.Mixer;
/** /**
* @test * @test
* @key sound
* @bug 4732218 * @bug 4732218
* @summary Clip.drain does not actually block until all I/O is complete as * @summary Clip.drain does not actually block until all I/O is complete as
* documented. * documented.

View File

@ -33,6 +33,7 @@ import javax.sound.sampled.Mixer;
/** /**
* @test * @test
* @key sound
* @bug 4237703 * @bug 4237703
* @summary Check that Clip.getMicrosecondLength() returns correct value. * @summary Check that Clip.getMicrosecondLength() returns correct value.
*/ */

View File

@ -33,6 +33,7 @@ import javax.sound.sampled.Mixer;
/** /**
* @test * @test
* @key sound
* @bug 4385928 * @bug 4385928
* @summary Verify that an endpoint -1 in Clip does not throw an exception * @summary Verify that an endpoint -1 in Clip does not throw an exception
*/ */

View File

@ -34,6 +34,7 @@ import javax.sound.sampled.Mixer;
/** /**
* @test * @test
* @key sound
* @bug 4385654 * @bug 4385654
* @summary Check that the MASTER_GAIN control has a valid precision * @summary Check that the MASTER_GAIN control has a valid precision
*/ */

View File

@ -30,6 +30,7 @@ import javax.sound.sampled.Mixer;
/** /**
* @test * @test
* @key sound
* @bug 5021234 * @bug 5021234
* @summary Using -2 for buffer size will fail retrieval of lines * @summary Using -2 for buffer size will fail retrieval of lines
*/ */

View File

@ -23,6 +23,7 @@
/** /**
* @test * @test
* @key sound
* @bug 7088367 * @bug 7088367
* @summary SourceDataLine.write and TargetDataLine.read don't throw ArrayIndexOutOfBoundsException * @summary SourceDataLine.write and TargetDataLine.read don't throw ArrayIndexOutOfBoundsException
* @author Alex Menkov * @author Alex Menkov

View File

@ -31,6 +31,7 @@ import javax.sound.sampled.TargetDataLine;
/** /**
* @test * @test
* @key sound
* @bug 5053380 * @bug 5053380
* @summary Verify that getting a line initializes it with the format in * @summary Verify that getting a line initializes it with the format in
* DataLine.Info * DataLine.Info

View File

@ -32,6 +32,7 @@ import javax.sound.sampled.TargetDataLine;
/** /**
* @test * @test
* @key sound
* @bug 4479441 * @bug 4479441
* @summary Verify that the lines report 16KHz and 32KHz capability * @summary Verify that the lines report 16KHz and 32KHz capability
*/ */

View File

@ -30,6 +30,7 @@ import javax.sound.sampled.SourceDataLine;
/** /**
* @test * @test
* @key sound
* @bug 4661602 * @bug 4661602
* @summary Buffersize is checked when re-opening line * @summary Buffersize is checked when re-opening line
*/ */

View File

@ -30,6 +30,7 @@ import javax.sound.sampled.SourceDataLine;
/** /**
* @test * @test
* @key sound
* @bug 4515126 * @bug 4515126
* @summary Verify that the buffer passed to SourceDataLine.write() and * @summary Verify that the buffer passed to SourceDataLine.write() and
* Clip.open() will not be changed * Clip.open() will not be changed

View File

@ -31,6 +31,7 @@ import java.awt.event.ActionListener;
/** /**
* @test * @test
* @key sound
* @bug 4218609 * @bug 4218609
* @summary A soft audio click is heard when playing some audio file * @summary A soft audio click is heard when playing some audio file
* @build ClickInPlay * @build ClickInPlay

View File

@ -33,6 +33,7 @@ import javax.sound.sampled.TargetDataLine;
/** /**
* @test * @test
* @key sound
* @bug 4679187 * @bug 4679187
* @summary Clip.open() throws unexpected Exceptions. verifies that clip, * @summary Clip.open() throws unexpected Exceptions. verifies that clip,
* sourcedataline and targetdataline throw IllegalArgumentExcepotion if * sourcedataline and targetdataline throw IllegalArgumentExcepotion if

View File

@ -29,6 +29,7 @@ import javax.sound.sampled.Mixer;
/** /**
* @test * @test
* @key sound
* @bug 4469409 * @bug 4469409
* @summary Check that the frame size in the formats returned by lines is * @summary Check that the frame size in the formats returned by lines is
* correct * correct

View File

@ -30,6 +30,7 @@ import javax.sound.sampled.SourceDataLine;
/** /**
* @test * @test
* @key sound
* @bug 4680710 * @bug 4680710
* @summary SourceDataLine.write() behavior is not correct for not open or not * @summary SourceDataLine.write() behavior is not correct for not open or not
* started lines * started lines

View File

@ -30,6 +30,7 @@ import javax.sound.sampled.SourceDataLine;
/** /**
* @test * @test
* @key sound
* @bug 4681384 * @bug 4681384
* @summary SourceDataLine.write() causes Unexpected Signal 11 in native code * @summary SourceDataLine.write() causes Unexpected Signal 11 in native code
* outside the VM * outside the VM

View File

@ -34,6 +34,7 @@ import javax.sound.sampled.SourceDataLine;
/** /**
* @test * @test
* @key sound
* @bug 4828556 * @bug 4828556
* @summary stopping and starting sampled audio plays small chunk in infinite * @summary stopping and starting sampled audio plays small chunk in infinite
* loop * loop

View File

@ -34,6 +34,7 @@ import javax.sound.sampled.SourceDataLine;
/** /**
* @test * @test
* @key sound
* @bug 4834461 * @bug 4834461
* @summary Applet hang when you load it during sound card is in use * @summary Applet hang when you load it during sound card is in use
* @run main/manual PlaySine * @run main/manual PlaySine

View File

@ -34,6 +34,7 @@ import javax.sound.sampled.LineListener;
/** /**
* @test * @test
* @key sound
* @bug 4498848 * @bug 4498848
* @summary Sound causes crashes on Linux (part 1) * @summary Sound causes crashes on Linux (part 1)
*/ */

View File

@ -36,6 +36,7 @@ import javax.sound.sampled.Mixer;
/** /**
* @test * @test
* @key sound
* @bug 4498848 * @bug 4498848
* @summary Sound causes crashes on Linux (part 3) * @summary Sound causes crashes on Linux (part 3)
*/ */

View File

@ -32,6 +32,7 @@ import javax.sound.sampled.SourceDataLine;
/** /**
* @test * @test
* @key sound
* @bug 4498848 * @bug 4498848
* @summary Sound causes crashes on Linux (part 2) * @summary Sound causes crashes on Linux (part 2)
*/ */

View File

@ -28,6 +28,7 @@ import javax.sound.sampled.Mixer;
/** /**
* @test * @test
* @key sound
* @bug 4667064 * @bug 4667064
* @summary Java Sound provides bogus SourceDataLine and TargetDataLine * @summary Java Sound provides bogus SourceDataLine and TargetDataLine
*/ */

View File

@ -29,6 +29,7 @@ import javax.sound.sampled.Mixer;
/** /**
* @test * @test
* @key sound
* @bug 4936397 * @bug 4936397
* @summary Verify that there'll for a given endianness, there's also the little * @summary Verify that there'll for a given endianness, there's also the little
* endian version * endian version

View File

@ -31,6 +31,7 @@ import java.awt.event.ActionListener;
/** /**
* @test * @test
* @key sound
* @bug 4997635 * @bug 4997635
* @summary Win: SourceDataLine playback loops endlessly unless you manually * @summary Win: SourceDataLine playback loops endlessly unless you manually
* stop() * stop()

View File

@ -31,6 +31,7 @@ import java.awt.event.ActionListener;
/** /**
* @test * @test
* @key sound
* @bug 5032020 * @bug 5032020
* @summary Win: Direct Audio is silent after underrun * @summary Win: Direct Audio is silent after underrun
* @build DirectSoundUnderrunSilence * @build DirectSoundUnderrunSilence

View File

@ -26,6 +26,7 @@ import javax.sound.sampled.Mixer;
/** /**
* @test * @test
* @key sound
* @bug 4936397 * @bug 4936397
* @summary Verify that there'll be either SimpleInputDevice OR DirectAudioDevice * @summary Verify that there'll be either SimpleInputDevice OR DirectAudioDevice
*/ */

View File

@ -30,6 +30,7 @@ import javax.sound.sampled.TargetDataLine;
/** /**
* @test * @test
* @key sound
* @bug 4794104 * @bug 4794104
* @summary mixers are always present, independent of available soundcards * @summary mixers are always present, independent of available soundcards
* @run main/manual PhantomMixers * @run main/manual PhantomMixers

View File

@ -29,6 +29,7 @@ import javax.sound.sampled.Mixer;
/** /**
* @test * @test
* @key sound
* @bug 5013897 * @bug 5013897
* @summary Verify that plughw: provides mono and 8-bit lines * @summary Verify that plughw: provides mono and 8-bit lines
*/ */

View File

@ -28,6 +28,7 @@ import javax.sound.sampled.Mixer;
/** /**
* @test * @test
* @key sound
* @bug 4964288 * @bug 4964288
* @summary Unexpected IAE raised while getting TargetDataLine * @summary Unexpected IAE raised while getting TargetDataLine
*/ */

View File

@ -30,6 +30,7 @@ import javax.sound.sampled.TargetDataLine;
/** /**
* @test * @test
* @key sound
* @bug 4836433 * @bug 4836433
* @summary Windows: TargetDataLine.flush() does not work. Since this test has * @summary Windows: TargetDataLine.flush() does not work. Since this test has
* some real-time variance, I disabled it by making it a manual test. * some real-time variance, I disabled it by making it a manual test.

View File

@ -29,6 +29,7 @@ import static java.util.ServiceLoader.load;
/** /**
* @test * @test
* @key sound
* @bug 8135100 * @bug 8135100
* @author Sergey Bylokhov * @author Sergey Bylokhov
*/ */