mstask: Actually run a test and fix the expected behaviour.

This commit is contained in:
Michael Stefaniuc 2012-05-16 11:28:37 +02:00 committed by Alexandre Julliard
parent b69811f5ee
commit f70181113f
2 changed files with 2 additions and 3 deletions

View File

@ -138,8 +138,6 @@ static HRESULT WINAPI MSTASK_ITaskTrigger_SetTrigger(
if (pTrigger->MinutesDuration <= pTrigger->MinutesInterval &&
pTrigger->MinutesInterval > 0)
return E_INVALIDARG;
if (pTrigger->MinutesDuration > 0 && pTrigger->MinutesInterval == 0)
return E_INVALIDARG;
tmp_trigger_cond.MinutesDuration = pTrigger->MinutesDuration;
tmp_trigger_cond.MinutesInterval = pTrigger->MinutesInterval;

View File

@ -303,7 +303,8 @@ static void test_SetTrigger_GetTrigger(void)
ok(hres == E_INVALIDARG, "Expected E_INVALIDARG: 0x%08x\n", hres);
normal_trigger_state.MinutesDuration = 5;
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.MinutesInterval = 0;