Vincent Povirk : gdiplus/tests: Check record types in playback tests.

Alexandre Julliard julliard at winehq.org
Mon Sep 19 10:32:12 CDT 2016


Module: wine
Branch: master
Commit: 8b7520ce6d7cae18c2c24920992e0d199e933660
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8b7520ce6d7cae18c2c24920992e0d199e933660

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Fri Sep 16 14:37:30 2016 -0500

gdiplus/tests: Check record types in playback tests.

Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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;
     }




More information about the wine-cvs mailing list