ntprint: Do not fail when the spooler service was stopped.
This commit is contained in:
parent
034de95550
commit
0e997674c5
|
@ -70,6 +70,10 @@ static void test_PSetupCreateMonitorInfo(VOID)
|
||||||
|
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
mi = pPSetupCreateMonitorInfo(NULL, NULL, NULL);
|
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());
|
ok( mi != NULL, "got %p with %u (expected '!= NULL')\n", mi, GetLastError());
|
||||||
if (mi) pPSetupDestroyMonitorInfo(mi);
|
if (mi) pPSetupDestroyMonitorInfo(mi);
|
||||||
|
|
||||||
|
@ -96,6 +100,10 @@ static void test_PSetupDestroyMonitorInfo(VOID)
|
||||||
|
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
mi = pPSetupCreateMonitorInfo(NULL, NULL, NULL);
|
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());
|
ok( mi != NULL, "got %p with %u (expected '!= NULL')\n", mi, GetLastError());
|
||||||
|
|
||||||
if (!mi) return;
|
if (!mi) return;
|
||||||
|
|
Loading…
Reference in New Issue