[PATCH 1/2] gdi32/tests: Mark a GetTextExtentPointW test as broken on Windows 10
Alex Henrie
alexhenrie24 at gmail.com
Sun Jan 9 21:45:04 CST 2022
Fixes a testbot failure.
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
dlls/gdi32/tests/font.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c
index 0c346fa5e6b..269151a1e1a 100644
--- a/dlls/gdi32/tests/font.c
+++ b/dlls/gdi32/tests/font.c
@@ -2457,7 +2457,8 @@ static void testJustification(const char *context, HDC hdc, PCSTR str, RECT *cli
{
/* The width returned by GetTextExtentPoint32() is exactly the same
returned by GetTextExtentExPointW() - see dlls/gdi32/font.c */
- ok(error[e].GetTextExtentExPointWWidth == areaWidth,
+ ok(error[e].GetTextExtentExPointWWidth == areaWidth ||
+ broken(abs(areaWidth - error[e].GetTextExtentExPointWWidth) <= 2) /* win10 */,
"%s: GetTextExtentPointW() for \"%.*s\" should have returned a width of %d, not %d.\n",
context, error[e].len, error[e].start, areaWidth, error[e].GetTextExtentExPointWWidth);
}
--
2.34.1
More information about the wine-devel
mailing list