Commit cbf48dae authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

dmime/tests: Allow small time variation in test_segment_state.

parent 2f86a5d6
...@@ -4503,17 +4503,20 @@ static void test_segment_state(void) ...@@ -4503,17 +4503,20 @@ static void test_segment_state(void)
tmp_state = (void *)0xdeadbeef; tmp_state = (void *)0xdeadbeef;
hr = IDirectMusicPerformance_GetSegmentState(performance, &tmp_state, 0); hr = IDirectMusicPerformance_GetSegmentState(performance, &tmp_state, 0);
ok(hr == S_OK, "got %#lx\n", hr); ok(hr == S_OK || broken(hr == DMUS_E_NOT_FOUND) /* sometimes on Windows */, "got %#lx\n", hr);
ok(state == tmp_state, "got %p\n", state); if (hr == S_OK)
IDirectMusicSegmentState_Release(tmp_state); {
ok(state == tmp_state, "got %p\n", tmp_state);
IDirectMusicSegmentState_Release(tmp_state);
}
tmp_state = (void *)0xdeadbeef; tmp_state = (void *)0xdeadbeef;
hr = IDirectMusicPerformance_GetSegmentState(performance, &tmp_state, 69); hr = IDirectMusicPerformance_GetSegmentState(performance, &tmp_state, 69);
ok(hr == S_OK, "got %#lx\n", hr); ok(hr == S_OK, "got %#lx\n", hr);
ok(state == tmp_state, "got %p\n", state); ok(state == tmp_state, "got %p\n", tmp_state);
IDirectMusicSegmentState_Release(tmp_state); IDirectMusicSegmentState_Release(tmp_state);
hr = IDirectMusicPerformance_GetSegmentState(performance, &tmp_state, 70); hr = IDirectMusicPerformance_GetSegmentState(performance, &tmp_state, 71);
todo_wine ok(hr == DMUS_E_NOT_FOUND, "got %#lx\n", hr); todo_wine ok(hr == DMUS_E_NOT_FOUND, "got %#lx\n", hr);
......
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