Michael Stefaniuc : dsound/tests: Skip tests if there is no default device.
Module: wine Branch: master Commit: 7f652810562fc3e0158b35ab29e17e5a82bb76b0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7f652810562fc3e0158b35ab29... Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Mon Apr 22 00:19:47 2013 +0200 dsound/tests: Skip tests if there is no default device. --- dlls/dsound/tests/dsound8.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dlls/dsound/tests/dsound8.c b/dlls/dsound/tests/dsound8.c index 664ba0c..e22265b 100644 --- a/dlls/dsound/tests/dsound8.c +++ b/dlls/dsound/tests/dsound8.c @@ -1095,6 +1095,10 @@ static void test_first_device(void) hr = IMMDeviceEnumerator_GetDefaultAudioEndpoint(devenum, eRender, eMultimedia, &defdev); + if (hr == E_NOTFOUND) { + win_skip("No default device found\n"); + return; + } ok(hr == S_OK, "GetDefaultAudioEndpoint failed: %08x\n", hr); hr = IMMDevice_OpenPropertyStore(defdev, STGM_READ, &ps);
participants (1)
-
Alexandre Julliard