Huw Davies : gdi32/tests: Skip the tests if the pen type is not supported.
Alexandre Julliard
julliard at winehq.org
Tue Jun 21 12:25:40 CDT 2011
Module: wine
Branch: master
Commit: 404b820289163374a2980cc0a2d1e0699d0c9874
URL: http://source.winehq.org/git/wine.git/?a=commit;h=404b820289163374a2980cc0a2d1e0699d0c9874
Author: Huw Davies <huw at codeweavers.com>
Date: Tue Jun 21 10:04:26 2011 +0100
gdi32/tests: Skip the tests if the pen type is not supported.
---
dlls/gdi32/tests/pen.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/gdi32/tests/pen.c b/dlls/gdi32/tests/pen.c
index db0b60b..d7819a5 100644
--- a/dlls/gdi32/tests/pen.c
+++ b/dlls/gdi32/tests/pen.c
@@ -81,7 +81,11 @@ static void test_logpen(void)
lp.lopnColor = pen[i].color;
SetLastError(0xdeadbeef);
hpen = CreatePenIndirect(&lp);
- ok(hpen != 0, "CreatePen error %d\n", GetLastError());
+ if(hpen == 0 && GetLastError() == ERROR_INVALID_PARAMETER)
+ {
+ win_skip("No support for pen style %u (%d)\n", pen[i].style, i);
+ continue;
+ }
obj_type = GetObjectType(hpen);
ok(obj_type == OBJ_PEN, "wrong object type %u\n", obj_type);
More information about the wine-cvs
mailing list