Andrew Eikum : winmm/tests: Don' t test MCI output if no output devices are available.
Module: wine Branch: master Commit: f78af0e04689e2faf2cc66e29899598d89b4a174 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f78af0e04689e2faf2cc66e298... Author: Andrew Eikum <aeikum(a)codeweavers.com> Date: Thu Jun 30 15:05:08 2011 -0500 winmm/tests: Don't test MCI output if no output devices are available. --- dlls/winmm/tests/mci.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dlls/winmm/tests/mci.c b/dlls/winmm/tests/mci.c index 91a3e47..1cbcc68 100644 --- a/dlls/winmm/tests/mci.c +++ b/dlls/winmm/tests/mci.c @@ -1271,9 +1271,12 @@ START_TEST(mci) test_mciParser(hwnd); test_openCloseWAVE(hwnd); test_recordWAVE(hwnd); - test_playWAVE(hwnd); - test_asyncWAVE(hwnd); - test_AutoOpenWAVE(hwnd); + if(waveOutGetNumDevs()){ + test_playWAVE(hwnd); + test_asyncWAVE(hwnd); + test_AutoOpenWAVE(hwnd); + }else + skip("No output devices available, skipping all output tests\n"); /* Win9X hangs when exiting with something still open. */ err = mciSendString("close all", NULL, 0, hwnd); ok(!err,"final close all returned %s\n", dbg_mcierr(err));
participants (1)
-
Alexandre Julliard