Michael Stefaniuc : dsound/tests: Skip tests if there is no default device.
Alexandre Julliard
julliard at winehq.org
Mon Apr 22 14:29:18 CDT 2013
Module: wine
Branch: master
Commit: 7f652810562fc3e0158b35ab29e17e5a82bb76b0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7f652810562fc3e0158b35ab29e17e5a82bb76b0
Author: Michael Stefaniuc <mstefani at 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);
More information about the wine-cvs
mailing list