user32/tests: Skip some tests if SetForegroundWindow doesn't behave correctly.

This commit is contained in:
Alexandre Julliard 2009-02-16 11:52:38 +01:00
parent fa212d5127
commit d00ad7f197
1 changed files with 5 additions and 1 deletions

View File

@ -2398,7 +2398,11 @@ static void test_SetForegroundWindow(HWND hwnd)
check_wnd_state(0, 0, 0, 0);
ret = SetForegroundWindow(hwnd);
ok(ret, "SetForegroundWindow returned FALSE instead of TRUE\n");
if (!ret)
{
skip( "SetForegroundWindow not working\n" );
return;
}
check_wnd_state(hwnd, hwnd, hwnd, 0);
SetLastError(0xdeadbeef);