Zebediah Figura : user32/tests: Get rid of the test for DC handle reuse.
Module: wine Branch: master Commit: d76527373b6ae40439706352a9297c4bf6878dee URL: https://source.winehq.org/git/wine.git/?a=commit;h=d76527373b6ae40439706352a... Author: Zebediah Figura <z.figura12(a)gmail.com> Date: Mon Jan 6 10:00:01 2020 -0600 user32/tests: Get rid of the test for DC handle reuse. It may be useful for demonstrating cache behaviour, but fails too frequently on Windows to be reliable. Signed-off-by: Zebediah Figura <z.figura12(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/user32/tests/dce.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/dlls/user32/tests/dce.c b/dlls/user32/tests/dce.c index 017506d9aa..116a6177b0 100644 --- a/dlls/user32/tests/dce.c +++ b/dlls/user32/tests/dce.c @@ -632,8 +632,7 @@ static void test_dc_layout(void) static void test_destroyed_window(void) { HDC dc, old_dc; - HDC hdcs[30]; - int i, rop; + int rop; dc = GetDC( hwnd_cache ); SetROP2( dc, R2_WHITE ); @@ -650,14 +649,6 @@ static void test_destroyed_window(void) dc = GetDC( hwnd_cache ); ok( !dc, "Got a non-NULL DC (%p) for a destroyed window\n", dc ); - for (i = 0; i < 30; i++) - { - dc = hdcs[i] = GetDCEx( hwnd_parent, 0, DCX_CACHE | DCX_USESTYLE ); - if (dc == old_dc) break; - } - ok( i < 30, "DC for destroyed window not reused\n" ); - while (i > 0) ReleaseDC( hwnd_parent, hdcs[--i] ); - dc = GetDC( hwnd_classdc ); SetROP2( dc, R2_WHITE ); rop = GetROP2( dc );
participants (1)
-
Alexandre Julliard