Andrew Eikum : winmm/tests: Only test non-mapper devices in interactive mode.

Alexandre Julliard julliard at winehq.org
Mon Apr 29 13:55:24 CDT 2013


Module: wine
Branch: master
Commit: ace442f3b755ac73ce9b63693c46873aa0a87020
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ace442f3b755ac73ce9b63693c46873aa0a87020

Author: Andrew Eikum <aeikum at codeweavers.com>
Date:   Fri Apr 26 13:08:56 2013 -0500

winmm/tests: Only test non-mapper devices in interactive mode.

Other devices might be less reliable, but we should generally expect
WAVE_MAPPER to behave well. This also massively reduces test runtime,
depending on how many devices are present.

---

 dlls/winmm/tests/wave.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/winmm/tests/wave.c b/dlls/winmm/tests/wave.c
index 09c7c89..fd05f7b 100644
--- a/dlls/winmm/tests/wave.c
+++ b/dlls/winmm/tests/wave.c
@@ -1469,8 +1469,9 @@ static void wave_out_tests(void)
        "waveOutOpen(%s): MMSYSERR_BADDEVICEID expected, got %s\n",
        dev_name(ndev+1),mmsys_error(rc));
 
-    for (d=0;d<ndev;d++)
-        wave_out_test_device(d);
+    if(winetest_interactive)
+        for (d=0;d<ndev;d++)
+            wave_out_test_device(d);
 
     if (ndev>0)
         wave_out_test_device(WAVE_MAPPER);




More information about the wine-cvs mailing list