[PATCH 2/5] mstask/tests: Avoid test failures on NT4
Detlef Riekenberg
wine.dev at web.de
Sun Nov 4 15:39:34 CST 2012
This is not visible with winetest (mstask.dll: n/a), but
testbot results for mstask test patches would be marked as failed.
--
By by ... Detlef
---
dlls/mstask/tests/task_scheduler.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/dlls/mstask/tests/task_scheduler.c b/dlls/mstask/tests/task_scheduler.c
index 2de0e16..586aeec 100644
--- a/dlls/mstask/tests/task_scheduler.c
+++ b/dlls/mstask/tests/task_scheduler.c
@@ -104,7 +104,19 @@ static void test_Activate(void)
START_TEST(task_scheduler)
{
+ HRESULT hres;
+
CoInitialize(NULL);
+ hres = CoCreateInstance(&CLSID_CTaskScheduler, NULL, CLSCTX_INPROC_SERVER,
+ &IID_ITaskScheduler, (void **) &test_task_scheduler);
+ if (hres == REGDB_E_CLASSNOTREG)
+ {
+ win_skip("CLSID_CTaskSchedule not available\n");
+ CoUninitialize();
+ return;
+ }
+ ITaskScheduler_Release(test_task_scheduler);
+
test_NewWorkItem();
test_Activate();
CoUninitialize();
--
1.7.5.4
More information about the wine-patches
mailing list