kernel32/tests: Windows 10 dropped support for SetConsoleFont().

Windows 10 1507 still supports it but not 1607+.

Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Francois Gouget 2019-11-14 00:29:46 +01:00 committed by Alexandre Julliard
parent bbdd1be4f8
commit ba4cfbd448
1 changed files with 6 additions and 0 deletions

View File

@ -2967,6 +2967,12 @@ static void test_SetConsoleFont(HANDLE std_output)
SetLastError(0xdeadbeef);
ret = pSetConsoleFont(NULL, 0);
ok(!ret, "got %d, expected zero\n", ret);
if (GetLastError() == LOWORD(E_NOTIMPL) /* win10 1709+ */ ||
broken(GetLastError() == ERROR_GEN_FAILURE) /* win10 1607 */)
{
skip("SetConsoleFont is not implemented\n");
return;
}
todo_wine ok(GetLastError() == ERROR_INVALID_HANDLE, "got %u, expected 6\n", GetLastError());
SetLastError(0xdeadbeef);