Roy Shea : mstask/test: Conformance test for CreateTrigger.

Alexandre Julliard julliard at winehq.org
Wed Aug 20 08:13:57 CDT 2008


Module: wine
Branch: master
Commit: 5b3b540d8b0e9cfd5bf18740d88bc2d477f0d99f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5b3b540d8b0e9cfd5bf18740d88bc2d477f0d99f

Author: Roy Shea <royshea at gmail.com>
Date:   Tue Aug 19 15:01:07 2008 -0700

mstask/test: Conformance test for CreateTrigger.

---

 dlls/mstask/tests/task.c |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/dlls/mstask/tests/task.c b/dlls/mstask/tests/task.c
index 708c5a3..48f87f2 100644
--- a/dlls/mstask/tests/task.c
+++ b/dlls/mstask/tests/task.c
@@ -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();
 }




More information about the wine-cvs mailing list