Huw Davies : gdi32/tests: Add broken behaviour on nt4 sp1-5.

Alexandre Julliard julliard at winehq.org
Fri Jun 17 13:13:48 CDT 2011


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Fri Jun 17 14:52:24 2011 +0100

gdi32/tests: Add broken behaviour on nt4 sp1-5.

---

 dlls/gdi32/tests/dc.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/dlls/gdi32/tests/dc.c b/dlls/gdi32/tests/dc.c
index 41d9643..ab8a2d0 100644
--- a/dlls/gdi32/tests/dc.c
+++ b/dlls/gdi32/tests/dc.c
@@ -497,7 +497,7 @@ todo_wine
 static void test_boundsrect_invalid(void)
 {
     HDC hdc;
-    RECT rect, expect;
+    RECT rect, expect, set_rect;
     UINT ret;
 
     hdc = GetDC(NULL);
@@ -518,8 +518,8 @@ static void test_boundsrect_invalid(void)
     else
     {
         /* Test parameter handling order. */
-        SetRect(&rect, 0, 0, 50, 50);
-        ret = SetBoundsRect(hdc, &rect, DCB_SET);
+        SetRect(&set_rect, 10, 20, 40, 50);
+        ret = SetBoundsRect(hdc, &set_rect, DCB_SET);
         ok(ret & DCB_RESET,
            "Expected return flag DCB_RESET to be set, got %u\n", ret);
 
@@ -533,7 +533,8 @@ static void test_boundsrect_invalid(void)
             ok(ret == DCB_RESET,
                "Expected GetBoundsRect to return DCB_RESET, got %u\n", ret);
             SetRect(&expect, 0, 0, 0, 0);
-            ok(EqualRect(&rect, &expect),
+            ok(EqualRect(&rect, &expect) ||
+               broken(EqualRect(&rect, &set_rect)), /* nt4 sp1-5 */
                "Expected output rectangle (0,0)-(0,0), got (%d,%d)-(%d,%d)\n",
                rect.left, rect.top, rect.right, rect.bottom);
        }




More information about the wine-cvs mailing list