Module: wine Branch: master Commit: 0519aec31019bfabdf5f1aa183e9049c5a376676 URL: https://source.winehq.org/git/wine.git/?a=commit;h=0519aec31019bfabdf5f1aa18...
Author: Francois Gouget fgouget@codeweavers.com Date: Wed Apr 27 15:20:03 2022 +0200
gdi32/tests: Trace the invalid height in test_max_height().
Signed-off-by: Francois Gouget fgouget@codeweavers.com Signed-off-by: Huw Davies huw@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/gdi32/tests/font.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c index 9c616e6a30b..76d787c1440 100644 --- a/dlls/gdi32/tests/font.c +++ b/dlls/gdi32/tests/font.c @@ -6523,6 +6523,7 @@ static void test_max_height(void)
/* test an invalid value */ for (i = 0; i < ARRAY_SIZE(invalid_height); i++) { + winetest_push_context("height=%ld", invalid_height[i]); lf.lfHeight = invalid_height[i]; hfont = CreateFontIndirectA(&lf); hfont_old = SelectObject(hdc, hfont); @@ -6534,6 +6535,7 @@ static void test_max_height(void) ok(tm.tmAveCharWidth == tm1.tmAveCharWidth, "expected 1 ppem value (%ld), got %ld\n", tm1.tmAveCharWidth, tm.tmAveCharWidth); DeleteObject(SelectObject(hdc, hfont_old)); + winetest_pop_context(); }
ReleaseDC(NULL, hdc);