Module: wine Branch: master Commit: 2830f98518842cc142a217b41369f695faf59729 URL: https://gitlab.winehq.org/wine/wine/-/commit/2830f98518842cc142a217b41369f69...
Author: Esme Povirk esme@codeweavers.com Date: Wed Sep 13 15:28:18 2023 -0500
user32/tests: Account for ignored messages in PeekMessage call.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53435
---
dlls/user32/tests/msg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c index 9ae772fc355..c931ca6a983 100644 --- a/dlls/user32/tests/msg.c +++ b/dlls/user32/tests/msg.c @@ -19689,7 +19689,9 @@ static void test_SendMessage_other_thread(int thread_n) MsgWaitForMultipleObjects(0, NULL, FALSE, 100, qs_all_input);
if (winetest_debug > 1) trace("main: call PeekMessage\n"); - ok(!PeekMessageA(&msg, 0, 0, 0, PM_REMOVE), "PeekMessage should fail\n"); + while (PeekMessageA(&msg, 0, 0, 0, PM_REMOVE)) { + ok(ignore_message(msg.message), "got unexpected message %04x from PeekMessageA\n", msg.message); + } ok_sequence(WmEmptySeq, "SendMessage from other thread 5", thread_n == 2);
ret = GetQueueStatus(QS_SENDMESSAGE|QS_POSTMESSAGE);