winspool.drv/tests: Skip non supported levels on Win9x/WinMe.

This commit is contained in:
Paul Vriens 2010-02-17 10:50:09 +01:00 committed by Alexandre Julliard
parent f5d40cb8c5
commit 5e3e9e03f2
1 changed files with 7 additions and 0 deletions

View File

@ -2275,6 +2275,13 @@ static void test_GetPrinter(void)
SetLastError(0xdeadbeef);
needed = (DWORD)-1;
ret = GetPrinter(hprn, level, NULL, 0, &needed);
if (ret)
{
win_skip("Level %d is not supported on Win9x/WinMe\n", level);
ok(GetLastError() == ERROR_SUCCESS, "wrong error %d\n", GetLastError());
ok(needed == 0,"Expected 0, got %d\n", needed);
continue;
}
ok(!ret, "level %d: GetPrinter should fail\n", level);
/* Not all levels are supported on all Windows-Versions */
if (GetLastError() == ERROR_INVALID_LEVEL ||