testsuite patch - please run on windows

Marcus Meissner marcus at jet.franken.de
Sat Oct 1 10:20:33 CDT 2005


Hi,

Can one of the Windows testers please try this testsuite patch?

The second test fails on WINE, but I have a Bugzilla where
the reporter said it should not.
(http://bugs.winehq.org/show_bug.cgi?id=1847)

Ciao, Marcus

Index: dlls/user/tests/win.c
===================================================================
RCS file: /home/wine/wine/dlls/user/tests/win.c,v
retrieving revision 1.71
diff -u -r1.71 win.c
--- dlls/user/tests/win.c	29 Sep 2005 13:36:14 -0000	1.71
+++ dlls/user/tests/win.c	1 Oct 2005 15:18:35 -0000
@@ -2173,6 +2173,8 @@
 
 static void test_capture_3(HWND hwnd1, HWND hwnd2)
 {
+    BOOL ret;
+
     ShowWindow(hwnd1, SW_HIDE);
     ShowWindow(hwnd2, SW_HIDE);
 
@@ -2188,7 +2190,10 @@
     ShowWindow(hwnd1, SW_SHOW);
     check_wnd_state(hwnd1, hwnd1, hwnd1, hwnd2);
 
-    ReleaseCapture();
+    ret = ReleaseCapture();
+    ok (ret, "releasecapture did not return TRUE.\n");
+    ret = ReleaseCapture();
+    ok (ret, "releasecapture did not return TRUE after second try.\n");
 }
 
 static void test_keyboard_input(HWND hwnd)



More information about the wine-devel mailing list