Zebediah Figura : user32/tests: Avoid testing that GDI handles are no longer valid.

Alexandre Julliard julliard at winehq.org
Tue Jan 7 17:25:24 CST 2020


Module: wine
Branch: master
Commit: 388dd4d890c45abb7bcdc0fe04ff38be8c0782c8
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=388dd4d890c45abb7bcdc0fe04ff38be8c0782c8

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Mon Jan  6 16:10:04 2020 -0600

user32/tests: Avoid testing that GDI handles are no longer valid.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/tests/clipboard.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/dlls/user32/tests/clipboard.c b/dlls/user32/tests/clipboard.c
index 4436ece70d..df23bb2894 100644
--- a/dlls/user32/tests/clipboard.c
+++ b/dlls/user32/tests/clipboard.c
@@ -1397,7 +1397,6 @@ static void test_handles( HWND hwnd )
     h = SetClipboardData( CF_BITMAP, bitmap );
     ok( h == bitmap, "got %p\n", h );
     ok( GetObjectType( h ) == OBJ_BITMAP, "expected bitmap %p\n", h );
-    ok( !GetObjectType( bitmap_temp ), "expected free object %p\n", bitmap_temp );
     h = SetClipboardData( CF_DSPBITMAP, bitmap2 );
     ok( h == bitmap2, "got %p\n", h );
     ok( GetObjectType( h ) == OBJ_BITMAP, "expected bitmap %p\n", h );
@@ -1605,9 +1604,6 @@ static void test_handles( HWND hwnd )
     ok( is_freed( hmoveable ) || broken( !is_freed( hmoveable )), "expected freed mem %p\n", hmoveable );
     ok( is_fixed( empty_fixed ), "expected fixed mem %p\n", empty_fixed );
     ok( is_fixed( hfixed ), "expected fixed mem %p\n", hfixed );
-    ok( !GetObjectType( bitmap ), "expected freed handle %p\n", bitmap );
-    ok( !GetObjectType( bitmap2 ), "expected freed handle %p\n", bitmap2 );
-    ok( !GetObjectType( palette ), "expected freed handle %p\n", palette );
 
     r = CloseClipboard();
     ok( r, "gle %d\n", GetLastError() );
@@ -1896,7 +1892,6 @@ static void test_data_handles(void)
     ok( GetObjectType( bitmap ) == OBJ_BITMAP, "expected bitmap %p\n", bitmap );
     r = EmptyClipboard();
     ok( r, "gle %d\n", GetLastError() );
-    ok( !GetObjectType( bitmap ), "expected deleted %p\n", bitmap );
     r = CloseClipboard();
     ok( r, "gle %d\n", GetLastError() );
 




More information about the wine-cvs mailing list