Module: wine Branch: master Commit: 85dac24e64aaed972c031bef01da5308a7bd2b5c URL: https://gitlab.winehq.org/wine/wine/-/commit/85dac24e64aaed972c031bef01da530...
Author: Rémi Bernon rbernon@codeweavers.com Date: Sat Jan 13 20:30:03 2024 +0100
user32/tests: Add flaky_wine to some SetActiveWindow tests.
They are constantly failing on Gitlab, and may be caused various race conditions around window focus, both in Wine and in Fvwm. It would be nice to fix them but it's been going for many years now and unlikely to be the case soon.
---
dlls/user32/tests/win.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index 2fd31be3314..8dad718e357 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -3814,10 +3814,13 @@ static void test_SetActiveWindow_0( char **argv ) flush_events( TRUE );
tmp = GetForegroundWindow(); + flaky_wine ok( tmp == hwnd, "GetForegroundWindow returned %p\n", tmp ); tmp = GetActiveWindow(); + flaky_wine ok( tmp == hwnd, "GetActiveWindow returned %p\n", tmp ); tmp = GetFocus(); + flaky_wine ok( tmp == hwnd, "GetFocus returned %p\n", tmp );
events[1] = CreateEventW( NULL, FALSE, FALSE, L"test_SetActiveWindow_0_start" );