[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-patches
Subject:    [winspool.drv/tests] Skip EnumPrintersW tests when not implemented
From:       Paul Vriens <paul.vriens.wine () gmail ! com>
Date:       2006-12-30 17:13:08
Message-ID: 1167498788.3170.14.camel () penguin ! ca ! com
[Download RAW message or body]

Hi,

EnumPrintersW is not implemented on my Win98 box.

Changelog
  Skip EnumPrintersW tests when not implemented

Cheers,

Paul.
---
 dlls/winspool.drv/tests/info.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/dlls/winspool.drv/tests/info.c b/dlls/winspool.drv/tests/info.c
index c7f6634..3bf59aa 100644
--- a/dlls/winspool.drv/tests/info.c
+++ b/dlls/winspool.drv/tests/info.c
@@ -1670,6 +1670,13 @@ static void test_EnumPrinters(void)
     SetLastError(0xdeadbeef);
     neededW = -1;
     ret = EnumPrintersW(PRINTER_ENUM_LOCAL, NULL, 2, NULL, 0, &neededW, &num);
+    /* EnumPrintersW is not supported on all platforms */
+    if (!ret && (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED))
+    {
+        trace("EnumPrintersW is not implemented, skipping some tests\n");
+        return;
+    }
+
     if (!ret)
     {
         /* We have 1 or more printers */
-- 
1.4.4.3



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic