ws2_32/tests: Wait for thread test before returning (valgrind)

Bruno Jesus 00cpxxx at gmail.com
Sat Jun 14 12:47:30 CDT 2014


Fixes bug https://bugs.winehq.org/show_bug.cgi?id=28756
-------------- next part --------------
diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index 0bbce27..1b59c27 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -5454,6 +5454,7 @@ static void test_WSARecv(void)
 
     send(src, "test message", sizeof("test message"), 0);
     thread = CreateThread(NULL, 0, recv_thread, &dest, 0, &id);
+    WaitForSingleObject(thread, 3000);
     CloseHandle(thread);
 
 end:


More information about the wine-patches mailing list