kernel32/tests: check return value of alarmThread in test_NamedPipe_2()

Austin English austinenglish at gmail.com
Sat May 22 02:06:23 CDT 2010


Also fix a typo.

Passes WTB:
https://testbot.winehq.org/JobDetails.pl?Key=2242

-- 
-Austin
-------------- next part --------------
diff --git a/dlls/kernel32/tests/pipe.c b/dlls/kernel32/tests/pipe.c
index b48ceec..0ad345b 100644
--- a/dlls/kernel32/tests/pipe.c
+++ b/dlls/kernel32/tests/pipe.c
@@ -797,8 +797,9 @@ static void test_NamedPipe_2(void)
     /* Set up a twenty second timeout */
     alarm_event = CreateEvent( NULL, TRUE, FALSE, NULL );
     alarmThread = CreateThread(NULL, 0, alarmThreadMain, (void *) 20000, 0, &alarmThreadId);
+    ok(alarmThread != INVALID_HANDLE_VALUE, "CreateThread\n");
 
-    /* The servers we're about to exercize do try to clean up carefully,
+    /* The servers we're about to exercise do try to clean up carefully,
      * but to reduce the change of a test failure due to a pipe handle
      * leak in the test code, we'll use a different pipe name for each server.
      */


More information about the wine-patches mailing list