mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 19:53:38 +00:00
user32/tests: Fix test failures under Windows.
Without SetForegroundWindow() these tests fail in some testbot runs. Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5aafd080d1
commit
825d2337b5
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue