Commit 825d2337 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

user32/tests: Fix test failures under Windows.

Without SetForegroundWindow() these tests fail in some testbot runs. Signed-off-by: 's avatarDmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 5aafd080
......@@ -2909,6 +2909,13 @@ static void test_popup_zorder(HWND hwnd_D, HWND hwnd_E, DWORD style)
{
HWND hwnd_A, hwnd_B, hwnd_C, hwnd_F;
/* Give current thread foreground state otherwise the tests may fail. */
if (!SetForegroundWindow(hwnd_D))
{
skip("SetForegroundWindow not working\n");
return;
}
trace("hwnd_D %p, hwnd_E %p\n", hwnd_D, hwnd_E);
SetWindowPos(hwnd_E, hwnd_D, 0,0,0,0, SWP_NOSIZE|SWP_NOMOVE|SWP_NOACTIVATE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment