Author: akhaldi
Date: Fri Jan 27 18:48:41 2012
New Revision: 55258
URL:
http://svn.reactos.org/svn/reactos?rev=55258&view=rev
Log:
[MSTASK_WINETEST]
* Sync to Wine 1.3.37.
Modified:
trunk/rostests/winetests/mstask/task_trigger.c
Modified: trunk/rostests/winetests/mstask/task_trigger.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/mstask/task_tri…
==============================================================================
--- trunk/rostests/winetests/mstask/task_trigger.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/mstask/task_trigger.c [iso-8859-1] Fri Jan 27 18:48:41 2012
@@ -224,6 +224,7 @@
memset(&trigger_state, 0xcf, sizeof(trigger_state));
trigger_state.cbTriggerSize = sizeof(trigger_state);
hres = ITaskTrigger_GetTrigger(test_trigger, &trigger_state);
+ ok(hres == S_OK, "Expected S_OK: 0x%08x\n", hres);
ok(trigger_state.Reserved1 == 0 && trigger_state.Reserved2 == 0,
"Reserved fields should be set to zero\n");
normal_trigger_state.Reserved1 = 0;
@@ -261,6 +262,7 @@
memset(&trigger_state, 0xcf, sizeof(trigger_state));
trigger_state.cbTriggerSize = sizeof(trigger_state);
hres = ITaskTrigger_GetTrigger(test_trigger, &trigger_state);
+ ok(hres == S_OK, "Expected S_OK: 0x%08x\n", hres);
ok(trigger_state.wEndYear == 0, "End year should be 0: %d\n",
trigger_state.wEndYear);
ok(trigger_state.wEndMonth == 200, "End month should be 200: %d\n",
@@ -328,6 +330,7 @@
memset(&trigger_state, 0xcf, sizeof(trigger_state));
trigger_state.cbTriggerSize = sizeof(trigger_state);
hres = ITaskTrigger_GetTrigger(test_trigger, &trigger_state);
+ ok(hres == S_OK, "Expected S_OK: 0x%08x\n", hres);
ok(trigger_state.Type.Weekly.WeeksInterval == 0xcfcf,
"Expected WeeksInterval set remain untouched: %d\n",
trigger_state.Type.Weekly.WeeksInterval);
@@ -337,6 +340,7 @@
normal_trigger_state.TriggerType = TASK_TIME_TRIGGER_DAILY;
normal_trigger_state.Type.Daily.DaysInterval = 1;
hres = ITaskTrigger_SetTrigger(test_trigger, &normal_trigger_state);
+ ok(hres == S_OK, "Expected S_OK: 0x%08x\n", hres);
/* Test setting trigger with set wRandomMinutesInterval */
normal_trigger_state.wRandomMinutesInterval = 5;
@@ -345,6 +349,7 @@
memset(&trigger_state, 0xcf, sizeof(trigger_state));
trigger_state.cbTriggerSize = sizeof(trigger_state);
hres = ITaskTrigger_GetTrigger(test_trigger, &trigger_state);
+ ok(hres == S_OK, "Expected S_OK: 0x%08x\n", hres);
ok(trigger_state.wRandomMinutesInterval == 0,
"wRandomMinutesInterval should be set to zero\n");
normal_trigger_state.wRandomMinutesInterval = 0;