mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-25 13:26:24 +00:00
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:
parent
2f86a5d6cb
commit
cbf48daecf
|
@ -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);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue