Huw Davies : winmm/tests: Add a small Sleep() to prevent a notification test from failing.

Alexandre Julliard julliard at winehq.org
Wed Sep 14 10:28:51 CDT 2016


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Tue Sep 13 11:02:19 2016 +0100

winmm/tests: Add a small Sleep() to prevent a notification test from failing.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winmm/tests/mci.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/winmm/tests/mci.c b/dlls/winmm/tests/mci.c
index 7e9b33a..5c9185e 100644
--- a/dlls/winmm/tests/mci.c
+++ b/dlls/winmm/tests/mci.c
@@ -1116,6 +1116,8 @@ static void test_asyncWAVE(HWND hwnd)
     trace("position after resume: %sms\n",buf);
     test_notification(hwnd,"play (aborted by pause/resume/pause)",0);
 
+    /* A small Sleep() here prevents the notification test failing with MCI_NOTIFY_SUCCESSFUL */
+    Sleep(10);
     err = mciSendStringA("close mysound wait", NULL, 0, NULL);
     ok(!err,"mci close wait returned %s\n", dbg_mcierr(err));
     test_notification(hwnd,"play (aborted by close)",MCI_NOTIFY_ABORTED);




More information about the wine-cvs mailing list