mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 07:37:02 +00:00
winmm/tests: Add a small Sleep() to prevent a notification test from failing.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4e9cc305bb
commit
eeb70819eb
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue