[4/4] gdiplus/tests: Check record types in playback tests.
Vincent Povirk
madewokherd at gmail.com
Fri Sep 16 14:37:30 CDT 2016
From: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
---
dlls/gdiplus/tests/metafile.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/dlls/gdiplus/tests/metafile.c b/dlls/gdiplus/tests/metafile.c
index 60890d9..7251ff3 100644
--- a/dlls/gdiplus/tests/metafile.c
+++ b/dlls/gdiplus/tests/metafile.c
@@ -211,12 +211,16 @@ static BOOL CALLBACK play_metafile_proc(EmfPlusRecordType record_type, unsigned
{
todo_wine_if (state->expected[state->count].playback_todo)
ok(stat == Ok, "%s.%i: GdipPlayMetafileRecord failed with stat %i\n", state->desc, state->count, stat);
+ todo_wine_if (state->expected[state->count].todo)
+ ok(state->expected[state->count].record_type == record_type,
+ "%s.%i: expected record type 0x%x, got 0x%x\n", state->desc, state->count,
+ state->expected[state->count].record_type, record_type);
state->count++;
}
else
{
todo_wine_if (state->expected[state->count].playback_todo)
- ok(0, "%s: too many records\n", state->desc);
+ ok(0, "%s: unexpected record 0x%x\n", state->desc, record_type);
return FALSE;
}
--
2.7.4
More information about the wine-patches
mailing list