dmime/tests: Allow small time variation in test_segment_state.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55637
This commit is contained in:
Rémi Bernon 2023-12-15 12:11:51 +01:00 committed by Alexandre Julliard
parent 2f86a5d6cb
commit cbf48daecf

View file

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