From 85dac24e64aaed972c031bef01da5308a7bd2b5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Sat, 13 Jan 2024 20:30:03 +0100 Subject: [PATCH] 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" );