mstask: Actually run a test and fix the expected behaviour.
This commit is contained in:
parent
b69811f5ee
commit
f70181113f
|
@ -138,8 +138,6 @@ static HRESULT WINAPI MSTASK_ITaskTrigger_SetTrigger(
|
||||||
if (pTrigger->MinutesDuration <= pTrigger->MinutesInterval &&
|
if (pTrigger->MinutesDuration <= pTrigger->MinutesInterval &&
|
||||||
pTrigger->MinutesInterval > 0)
|
pTrigger->MinutesInterval > 0)
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
if (pTrigger->MinutesDuration > 0 && pTrigger->MinutesInterval == 0)
|
|
||||||
return E_INVALIDARG;
|
|
||||||
tmp_trigger_cond.MinutesDuration = pTrigger->MinutesDuration;
|
tmp_trigger_cond.MinutesDuration = pTrigger->MinutesDuration;
|
||||||
tmp_trigger_cond.MinutesInterval = pTrigger->MinutesInterval;
|
tmp_trigger_cond.MinutesInterval = pTrigger->MinutesInterval;
|
||||||
|
|
||||||
|
|
|
@ -303,7 +303,8 @@ static void test_SetTrigger_GetTrigger(void)
|
||||||
ok(hres == E_INVALIDARG, "Expected E_INVALIDARG: 0x%08x\n", hres);
|
ok(hres == E_INVALIDARG, "Expected E_INVALIDARG: 0x%08x\n", hres);
|
||||||
normal_trigger_state.MinutesDuration = 5;
|
normal_trigger_state.MinutesDuration = 5;
|
||||||
normal_trigger_state.MinutesInterval = 0;
|
normal_trigger_state.MinutesInterval = 0;
|
||||||
ok(hres == E_INVALIDARG, "Expected E_INVALIDARG: 0x%08x\n", hres);
|
hres = ITaskTrigger_SetTrigger(test_trigger, &normal_trigger_state);
|
||||||
|
ok(hres == S_OK, "Failed to set trigger: 0x%08x\n", hres);
|
||||||
normal_trigger_state.MinutesDuration = 0;
|
normal_trigger_state.MinutesDuration = 0;
|
||||||
normal_trigger_state.MinutesInterval = 0;
|
normal_trigger_state.MinutesInterval = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue