dlls/user/tests/win.c fix

Dmitry Timoshkov dmitry at codeweavers.com
Mon Oct 2 22:33:41 CDT 2006


"Juan Lang" <juan_lang at yahoo.com> wrote:

> win.c:2414: Test failed: message 000f available
> win.c:2422: Test failed: message 000f available
> win.c:2430: Test failed: message 000f available
> make: *** [win.ok] Error 3
> 
> On the fourth run it succeeded.  I know you know that these are WM_PAINT
> again.

Does moving flush_events() a bit further like in the attached patch help?
If it doesn't, please try to change 100 in flush_events to 200 or even
more and see if that helps.

-- 
Dmitry.
-------------- next part --------------
--- cvs/hq/wine/dlls/user/tests/win.c	Mon Oct 02 11:54:08 2006
+++ wine/dlls/user/tests/win.c	Tue Oct 03 03:27:46 2006
@@ -2398,7 +2398,6 @@ static void test_keyboard_input(HWND hwn
 
     ShowWindow(hwnd, SW_SHOW);
     UpdateWindow(hwnd);
-    flush_events();
 
     ok(GetActiveWindow() == hwnd, "wrong active window %p\n", GetActiveWindow());
 
@@ -2406,6 +2405,7 @@ static void test_keyboard_input(HWND hwn
     ok(GetFocus() == hwnd, "wrong focus window %p\n", GetFocus());
 
     while (PeekMessageA(&msg, 0, 0, 0, PM_REMOVE)) DispatchMessageA(&msg);
+    flush_events();
 
     PostMessageA(hwnd, WM_KEYDOWN, 0, 0);
     ok(PeekMessageA(&msg, 0, 0, 0, PM_REMOVE), "no message available\n");


More information about the wine-devel mailing list