[PATCH] user32: fixed a unreliable test

Marcus Meissner marcus at jet.franken.de
Mon Oct 30 12:07:36 CDT 2017


From: Marcus Meissner <meissner at suse.de>

Signed-off-by: Marcus Meissner <meissner at suse.de>
---
 dlls/user32/tests/clipboard.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/user32/tests/clipboard.c b/dlls/user32/tests/clipboard.c
index f0a24cb274..b0dac471f3 100644
--- a/dlls/user32/tests/clipboard.c
+++ b/dlls/user32/tests/clipboard.c
@@ -1759,10 +1759,13 @@ static void test_handles( HWND hwnd )
     h = SetClipboardData( 0xdeadbeef, hfixed );
     ok( h == hfixed, "got %p\n", h );
     ok( is_fixed( h ), "expected fixed mem %p\n", h );
+    if (0) {
+    /* This test is unreliable / crashes */
 #ifndef _WIN64
     /* testing if hfixed2 is freed triggers an exception on Win64 */
     ok( is_freed( hfixed2 ) || broken( !is_freed( hfixed2 )) /* < Vista */, "expected freed mem %p\n", hfixed2 );
 #endif
+    }
 
     r = CloseClipboard();
     ok( r, "gle %d\n", GetLastError() );
-- 
2.14.3




More information about the wine-patches mailing list