Module: wine Branch: master Commit: c9b0d7f15e6c5fc1033bcf5057f85fd13b6093f6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c9b0d7f15e6c5fc1033bcf5057...
Author: Detlef Riekenberg wine.dev@web.de Date: Wed Aug 11 21:25:32 2010 +0200
qmgr/tests: Detect when the service is disabled.
---
dlls/qmgr/tests/qmgr.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/qmgr/tests/qmgr.c b/dlls/qmgr/tests/qmgr.c index 8c95586..6dc9c1c 100644 --- a/dlls/qmgr/tests/qmgr.c +++ b/dlls/qmgr/tests/qmgr.c @@ -38,6 +38,11 @@ test_CreateInstance(void) /* Creating BITS instance */ hres = CoCreateInstance(&CLSID_BackgroundCopyManager, NULL, CLSCTX_LOCAL_SERVER, &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); if(hres != S_OK) { skip("Unable to create bits instance.\n");