qmgr/tests: Detect when the service is disabled.
This commit is contained in:
parent
f999060f4d
commit
c9b0d7f15e
|
@ -38,6 +38,11 @@ test_CreateInstance(void)
|
||||||
/* Creating BITS instance */
|
/* Creating BITS instance */
|
||||||
hres = CoCreateInstance(&CLSID_BackgroundCopyManager, NULL, CLSCTX_LOCAL_SERVER,
|
hres = CoCreateInstance(&CLSID_BackgroundCopyManager, NULL, CLSCTX_LOCAL_SERVER,
|
||||||
&IID_IBackgroundCopyManager, (void **) &manager);
|
&IID_IBackgroundCopyManager, (void **) &manager);
|
||||||
|
|
||||||
|
if(hres == __HRESULT_FROM_WIN32(ERROR_SERVICE_DISABLED)) {
|
||||||
|
skip("Needed Service is disabled\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
ok(hres == S_OK, "CoCreateInstance failed: %08x\n", hres);
|
ok(hres == S_OK, "CoCreateInstance failed: %08x\n", hres);
|
||||||
if(hres != S_OK) {
|
if(hres != S_OK) {
|
||||||
skip("Unable to create bits instance.\n");
|
skip("Unable to create bits instance.\n");
|
||||||
|
|
Loading…
Reference in New Issue