gdi32/tests: Consistently print out all infos about non-equal rects
André Hentschel
nerv at dawncrow.de
Tue Aug 9 12:17:12 CDT 2011
the first one uses this style
---
dlls/gdi32/tests/dc.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/dlls/gdi32/tests/dc.c b/dlls/gdi32/tests/dc.c
index 5017583..c173cef 100644
--- a/dlls/gdi32/tests/dc.c
+++ b/dlls/gdi32/tests/dc.c
@@ -107,7 +107,10 @@ todo_wine
ret = GetClipBox(hdc, &rc_clip);
ok(ret == SIMPLEREGION || broken(ret == COMPLEXREGION), "GetClipBox returned %d instead of SIMPLEREGION\n", ret);
SetRect(&rc, 0, 0, 50, 50);
- ok(EqualRect(&rc, &rc_clip), "rects are not equal\n");
+ ok(EqualRect(&rc, &rc_clip),
+ "rects are not equal: (%d,%d-%d,%d) - (%d,%d-%d,%d)\n",
+ rc.left, rc.top, rc.right, rc.bottom,
+ rc_clip.left, rc_clip.top, rc_clip.right, rc_clip.bottom);
ret = RestoreDC(hdc, 1);
ok(ret, "ret = %d\n", ret);
@@ -115,7 +118,10 @@ todo_wine
ret = GetClipBox(hdc, &rc_clip);
ok(ret == SIMPLEREGION || broken(ret == COMPLEXREGION), "GetClipBox returned %d instead of SIMPLEREGION\n", ret);
SetRect(&rc, 0, 0, 100, 100);
- ok(EqualRect(&rc, &rc_clip), "rects are not equal\n");
+ ok(EqualRect(&rc, &rc_clip),
+ "rects are not equal: (%d,%d-%d,%d) - (%d,%d-%d,%d)\n",
+ rc.left, rc.top, rc.right, rc.bottom,
+ rc_clip.left, rc_clip.top, rc_clip.right, rc_clip.bottom);
DeleteObject(hrgn);
ReleaseDC(hwnd, hdc);
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list