[PATCH] winmm/tests: Give play from 0 to 0 more time to finish.

Andrew Eikum aeikum at codeweavers.com
Thu Oct 19 07:57:04 CDT 2017


Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>

On Tue, Oct 17, 2017 at 11:29:11PM -0600, Alex Henrie wrote:
> Without this patch, the Windows 7 and higher testbot VMs often fail to
> detect that the sound has stopped if the testbot is under heavy load. I
> ran the testbot 20 times with the patch and this test did not fail once,
> which suggests that the patch reduced the probability of failure to less
> than 5%.
> 
> Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
> ---
>  dlls/winmm/tests/mci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/dlls/winmm/tests/mci.c b/dlls/winmm/tests/mci.c
> index 52790c8756..7c8aee8273 100644
> --- a/dlls/winmm/tests/mci.c
> +++ b/dlls/winmm/tests/mci.c
> @@ -848,7 +848,7 @@ static void test_playWAVE(HWND hwnd)
>      err = mciSendStringA("play mysound from 250 to 0", NULL, 0, NULL);
>      ok(err==MCIERR_OUTOFRANGE,"mci play from 250 to 0 returned %s\n", dbg_mcierr(err));
>  
> -    Sleep(50); /* Give play from 0 to 0 time to finish. */
> +    Sleep(100); /* Give play from 0 to 0 time to finish. */
>      todo_wine test_notification(hwnd, "play from 0 to 0", MCI_NOTIFY_SUCCESSFUL);
>  
>      err = mciSendStringA("status mysound mode", buf, sizeof(buf), hwnd);
> -- 
> 2.14.2
> 



More information about the wine-patches mailing list