[PATCH] mstask/tests: Skip some tests, when the service is not running
Detlef Riekenberg
wine.dev at web.de
Tue Dec 22 07:01:22 CST 2009
---
dlls/mstask/tests/task.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/mstask/tests/task.c b/dlls/mstask/tests/task.c
index b9dee35..74621c7 100644
--- a/dlls/mstask/tests/task.c
+++ b/dlls/mstask/tests/task.c
@@ -433,6 +433,13 @@ static void test_SetAccountInformation_GetAccountInformation(void)
cleanup_task();
return;
}
+ if (hres == SCHED_E_SERVICE_NOT_RUNNING)
+ {
+ skip("Service not running (Task Scheduler)\n");
+ cleanup_task();
+ return;
+ }
+
ok(hres == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) ||
hres == SCHED_E_CANNOT_OPEN_TASK,
"Unset account name generated: 0x%08x\n", hres);
--
1.6.5
--=-------------1261487137170148957--
More information about the wine-patches
mailing list