mstask/test: Conformance test for CreateTrigger.

This commit is contained in:
Roy Shea 2008-08-19 15:01:07 -07:00 committed by Alexandre Julliard
parent 32354497f7
commit 5b3b540d8b
1 changed files with 29 additions and 0 deletions

View File

@ -202,9 +202,38 @@ static void test_SetApplicationName_GetApplicationName(void)
return;
}
static void test_CreateTrigger(void)
{
BOOL setup;
HRESULT hres;
WORD trigger_index;
ITaskTrigger *test_trigger;
setup = setup_task();
ok(setup, "Failed to setup test_task\n");
if (!setup)
{
skip("Failed to create task. Skipping tests.\n");
return;
}
hres = ITask_CreateTrigger(test_task, &trigger_index, &test_trigger);
todo_wine ok(hres == S_OK, "Failed to create trigger: 0x%08x\n", hres);
if (hres != S_OK)
{
cleanup_task();
return;
}
ITaskTrigger_Release(test_trigger);
cleanup_task();
return;
}
START_TEST(task)
{
CoInitialize(NULL);
test_SetApplicationName_GetApplicationName();
test_CreateTrigger();
CoUninitialize();
}