Alexandre Julliard : gdi32/tests: Fix some test failures on Windows.
Alexandre Julliard
julliard at winehq.org
Fri Jul 15 11:45:11 CDT 2011
Module: wine
Branch: master
Commit: 7bc4c60782390289adf1df5556cc2cf8cdef3b91
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7bc4c60782390289adf1df5556cc2cf8cdef3b91
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Jul 15 09:59:13 2011 +0200
gdi32/tests: Fix some test failures on Windows.
---
dlls/gdi32/tests/dc.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/gdi32/tests/dc.c b/dlls/gdi32/tests/dc.c
index ab8a2d0..5017583 100644
--- a/dlls/gdi32/tests/dc.c
+++ b/dlls/gdi32/tests/dc.c
@@ -72,7 +72,7 @@ static void test_savedc_2(void)
ok(hdc != NULL, "GetDC failed\n");
ret = GetClipBox(hdc, &rc_clip);
- ok(ret == SIMPLEREGION, "GetClipBox returned %d instead of SIMPLEREGION\n", ret);
+ ok(ret == SIMPLEREGION || broken(ret == COMPLEXREGION), "GetClipBox returned %d instead of SIMPLEREGION\n", ret);
ret = GetClipRgn(hdc, hrgn);
ok(ret == 0, "GetClipRgn returned %d instead of 0\n", ret);
ret = GetRgnBox(hrgn, &rc);
@@ -105,7 +105,7 @@ todo_wine
ok(ret == SIMPLEREGION, "IntersectClipRect returned %d instead of SIMPLEREGION\n", ret);
ret = GetClipBox(hdc, &rc_clip);
- ok(ret == SIMPLEREGION, "GetClipBox returned %d instead of SIMPLEREGION\n", ret);
+ 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");
@@ -113,7 +113,7 @@ todo_wine
ok(ret, "ret = %d\n", ret);
ret = GetClipBox(hdc, &rc_clip);
- ok(ret == SIMPLEREGION, "GetClipBox returned %d instead of SIMPLEREGION\n", ret);
+ 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");
More information about the wine-cvs
mailing list