Paul Vriens : winspool.drv/tests: Fix some test failures on Win9x/WinMe.
Alexandre Julliard
julliard at winehq.org
Wed Feb 17 10:12:05 CST 2010
Module: wine
Branch: master
Commit: f5d40cb8c5d6f33b7b34c5b0c1943b9dd50e8bc0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f5d40cb8c5d6f33b7b34c5b0c1943b9dd50e8bc0
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Wed Feb 17 10:38:31 2010 +0100
winspool.drv/tests: Fix some test failures on Win9x/WinMe.
---
dlls/winspool.drv/tests/info.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/dlls/winspool.drv/tests/info.c b/dlls/winspool.drv/tests/info.c
index 712b00b..2ea5f54 100644
--- a/dlls/winspool.drv/tests/info.c
+++ b/dlls/winspool.drv/tests/info.c
@@ -2277,7 +2277,12 @@ static void test_GetPrinter(void)
ret = GetPrinter(hprn, level, NULL, 0, &needed);
ok(!ret, "level %d: GetPrinter should fail\n", level);
/* Not all levels are supported on all Windows-Versions */
- if(GetLastError() == ERROR_INVALID_LEVEL) continue;
+ if (GetLastError() == ERROR_INVALID_LEVEL ||
+ GetLastError() == ERROR_NOT_SUPPORTED /* Win9x/WinMe */)
+ {
+ skip("Level %d not supported\n", level);
+ continue;
+ }
ok(GetLastError() == ERROR_INSUFFICIENT_BUFFER, "wrong error %d\n", GetLastError());
ok(needed > 0,"not expected needed buffer size %d\n", needed);
More information about the wine-cvs
mailing list