Detlef Riekenberg : ntprint: Do not fail when the spooler service was stopped.
Module: wine Branch: master Commit: 0e997674c57f0effa93c7502eb5b1f4e06e5f6e6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0e997674c57f0effa93c7502eb... Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Tue Jun 12 21:56:06 2012 +0200 ntprint: Do not fail when the spooler service was stopped. --- dlls/ntprint/tests/ntprint.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/dlls/ntprint/tests/ntprint.c b/dlls/ntprint/tests/ntprint.c index cf9853d..7e1ab58 100644 --- a/dlls/ntprint/tests/ntprint.c +++ b/dlls/ntprint/tests/ntprint.c @@ -70,6 +70,10 @@ static void test_PSetupCreateMonitorInfo(VOID) SetLastError(0xdeadbeef); mi = pPSetupCreateMonitorInfo(NULL, NULL, NULL); + if (!mi && (GetLastError() == RPC_S_SERVER_UNAVAILABLE)) { + win_skip("The Service 'Spooler' is required for many test\n"); + return; + } ok( mi != NULL, "got %p with %u (expected '!= NULL')\n", mi, GetLastError()); if (mi) pPSetupDestroyMonitorInfo(mi); @@ -96,6 +100,10 @@ static void test_PSetupDestroyMonitorInfo(VOID) SetLastError(0xdeadbeef); mi = pPSetupCreateMonitorInfo(NULL, NULL, NULL); + if (!mi && (GetLastError() == RPC_S_SERVER_UNAVAILABLE)) { + win_skip("The Service 'Spooler' is required for many test\n"); + return; + } ok( mi != NULL, "got %p with %u (expected '!= NULL')\n", mi, GetLastError()); if (!mi) return;
participants (1)
-
Alexandre Julliard