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@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
89d67614ca
commit
d76527373b
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue