From 5e3e9e03f2c6c4b71e17fd51309e741f4d37f95e Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Wed, 17 Feb 2010 10:50:09 +0100 Subject: [PATCH] winspool.drv/tests: Skip non supported levels on Win9x/WinMe. --- dlls/winspool.drv/tests/info.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dlls/winspool.drv/tests/info.c b/dlls/winspool.drv/tests/info.c index 2ea5f5495b..7739a2b714 100644 --- a/dlls/winspool.drv/tests/info.c +++ b/dlls/winspool.drv/tests/info.c @@ -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 || -- 2.32.0.93.g670b81a890