[PATCH resend] user32/tests: Fix broadcast test failures on Windows 10

Alexandre Julliard julliard at winehq.org
Thu Apr 26 14:13:32 CDT 2018


Alex Henrie <alexhenrie24 at gmail.com> writes:

> @@ -266,8 +228,10 @@ static void test_noprivileges(void)
>      recips = BSM_ALLDESKTOPS;
>      ResetEvent(hevent);
>      ret = BroadcastSystemMessageExW( BSF_QUERY, &recips, WM_NULL, 100, 0, NULL );
> -    ok(ret==1, "Returned: %d error %u\n", ret, GetLastError());
> -    ok(WaitForSingleObject(hevent, 0) != WAIT_TIMEOUT, "Asynchronous message sent instead\n");
> +    ok((ret == 1 && WaitForSingleObject(hevent, 0) != WAIT_TIMEOUT) ||
> +       (ret == 0 && WaitForSingleObject(hevent, 1000) == WAIT_TIMEOUT) /* win10 */,
> +       "Asynchronous message sent instead of synchronous message or no message. Returned: %d error %08x\n",
> +       ret, GetLastError());

These still look like hiding the problem. Why are these calls failing?

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list