11
11
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
12
12
* Portions Copyright (c) 1994, Regents of the University of California
13
13
*
14
- * $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.58 2009/01/27 12:46:16 mha Exp $
14
+ * $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.59 2009/01/28 15:32:21 mha Exp $
15
15
*
16
16
*-------------------------------------------------------------------------
17
17
*/
@@ -1333,9 +1333,9 @@ wait_for_tests(PID_TYPE *pids, int *statuses, char **names, int num_tests)
1333
1333
while (tests_left > 0 )
1334
1334
{
1335
1335
PID_TYPE p ;
1336
- int exit_status ;
1337
1336
1338
1337
#ifndef WIN32
1338
+ int exit_status ;
1339
1339
p = wait (& exit_status );
1340
1340
1341
1341
if (p == INVALID_PID )
@@ -1345,6 +1345,7 @@ wait_for_tests(PID_TYPE *pids, int *statuses, char **names, int num_tests)
1345
1345
exit_nicely (2 );
1346
1346
}
1347
1347
#else
1348
+ DWORD exit_status ;
1348
1349
int r ;
1349
1350
1350
1351
r = WaitForMultipleObjects (tests_left ,active_pids , FALSE,INFINITE );
@@ -1364,11 +1365,11 @@ wait_for_tests(PID_TYPE *pids, int *statuses, char **names, int num_tests)
1364
1365
if (p == pids [i ])
1365
1366
{
1366
1367
#ifdef WIN32
1367
- GetExitCodeProcess (pids [i ],( LPDWORD ) & exit_status );
1368
+ GetExitCodeProcess (pids [i ],& exit_status );
1368
1369
CloseHandle (pids [i ]);
1369
1370
#endif
1370
1371
pids [i ]= INVALID_PID ;
1371
- statuses [i ]= exit_status ;
1372
+ statuses [i ]= ( int ) exit_status ;
1372
1373
if (names )
1373
1374
status (" %s" ,names [i ]);
1374
1375
tests_left -- ;