Commit 340a4c21 authored by Austin English's avatar Austin English Committed by Alexandre Julliard

mstask/tests: Make sure return values are used (LLVM/Clang).

parent f640a386
...@@ -224,6 +224,7 @@ static void test_SetTrigger_GetTrigger(void) ...@@ -224,6 +224,7 @@ static void test_SetTrigger_GetTrigger(void)
memset(&trigger_state, 0xcf, sizeof(trigger_state)); memset(&trigger_state, 0xcf, sizeof(trigger_state));
trigger_state.cbTriggerSize = sizeof(trigger_state); trigger_state.cbTriggerSize = sizeof(trigger_state);
hres = ITaskTrigger_GetTrigger(test_trigger, &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, ok(trigger_state.Reserved1 == 0 && trigger_state.Reserved2 == 0,
"Reserved fields should be set to zero\n"); "Reserved fields should be set to zero\n");
normal_trigger_state.Reserved1 = 0; normal_trigger_state.Reserved1 = 0;
...@@ -261,6 +262,7 @@ static void test_SetTrigger_GetTrigger(void) ...@@ -261,6 +262,7 @@ static void test_SetTrigger_GetTrigger(void)
memset(&trigger_state, 0xcf, sizeof(trigger_state)); memset(&trigger_state, 0xcf, sizeof(trigger_state));
trigger_state.cbTriggerSize = sizeof(trigger_state); trigger_state.cbTriggerSize = sizeof(trigger_state);
hres = ITaskTrigger_GetTrigger(test_trigger, &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", ok(trigger_state.wEndYear == 0, "End year should be 0: %d\n",
trigger_state.wEndYear); trigger_state.wEndYear);
ok(trigger_state.wEndMonth == 200, "End month should be 200: %d\n", ok(trigger_state.wEndMonth == 200, "End month should be 200: %d\n",
...@@ -328,6 +330,7 @@ static void test_SetTrigger_GetTrigger(void) ...@@ -328,6 +330,7 @@ static void test_SetTrigger_GetTrigger(void)
memset(&trigger_state, 0xcf, sizeof(trigger_state)); memset(&trigger_state, 0xcf, sizeof(trigger_state));
trigger_state.cbTriggerSize = sizeof(trigger_state); trigger_state.cbTriggerSize = sizeof(trigger_state);
hres = ITaskTrigger_GetTrigger(test_trigger, &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, ok(trigger_state.Type.Weekly.WeeksInterval == 0xcfcf,
"Expected WeeksInterval set remain untouched: %d\n", "Expected WeeksInterval set remain untouched: %d\n",
trigger_state.Type.Weekly.WeeksInterval); trigger_state.Type.Weekly.WeeksInterval);
...@@ -337,6 +340,7 @@ static void test_SetTrigger_GetTrigger(void) ...@@ -337,6 +340,7 @@ static void test_SetTrigger_GetTrigger(void)
normal_trigger_state.TriggerType = TASK_TIME_TRIGGER_DAILY; normal_trigger_state.TriggerType = TASK_TIME_TRIGGER_DAILY;
normal_trigger_state.Type.Daily.DaysInterval = 1; normal_trigger_state.Type.Daily.DaysInterval = 1;
hres = ITaskTrigger_SetTrigger(test_trigger, &normal_trigger_state); 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 */ /* Test setting trigger with set wRandomMinutesInterval */
normal_trigger_state.wRandomMinutesInterval = 5; normal_trigger_state.wRandomMinutesInterval = 5;
...@@ -345,6 +349,7 @@ static void test_SetTrigger_GetTrigger(void) ...@@ -345,6 +349,7 @@ static void test_SetTrigger_GetTrigger(void)
memset(&trigger_state, 0xcf, sizeof(trigger_state)); memset(&trigger_state, 0xcf, sizeof(trigger_state));
trigger_state.cbTriggerSize = sizeof(trigger_state); trigger_state.cbTriggerSize = sizeof(trigger_state);
hres = ITaskTrigger_GetTrigger(test_trigger, &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, ok(trigger_state.wRandomMinutesInterval == 0,
"wRandomMinutesInterval should be set to zero\n"); "wRandomMinutesInterval should be set to zero\n");
normal_trigger_state.wRandomMinutesInterval = 0; normal_trigger_state.wRandomMinutesInterval = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment