RFR: 8282463: javax/sound/sampled/Clip/DataPusherThreadCheck.java fails
Andrey Turbanov
aturbanov at openjdk.org
Sat Oct 15 13:18:49 UTC 2022
Test failed on Ubuntu, because both implementations of `MixerProvider` have no devices:
1. com.sun.media.sound.DirectAudioDeviceProvider#nGetNumDevices returns `0`

2. com.sun.media.sound.PortMixerProvider#nGetNumDevices returns `0`

It leads to `javax.sound.sampled.spi.MixerProvider#getMixerInfo` returns empty array.

And DataPusher thread is not created, because of AudioSystem.isLineSupported returns false in the method `com.sun.media.sound.JavaSoundAudioClip#createSourceDataLine`.
I propose to perform the same check in test code and skip it.
-------------
Commit messages:
- 8282463: javax/sound/sampled/Clip/DataPusherThreadCheck.java fails
Changes: https://git.openjdk.org/jdk/pull/10717/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10717&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8282463
Stats: 6 lines in 1 file changed: 6 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/10717.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/10717/head:pull/10717
PR: https://git.openjdk.org/jdk/pull/10717
More information about the client-libs-dev
mailing list