mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Update.
* test-skeleton.c (main): If EXPECTED_STATUS is defined check that returned status from child matches.
This commit is contained in:
@ -333,5 +333,16 @@ main (int argc, char *argv[])
|
||||
}
|
||||
|
||||
/* Simply exit with the return value of the test. */
|
||||
#ifndef EXPECTED_STATUS
|
||||
return WEXITSTATUS (status);
|
||||
#else
|
||||
if (WEXITSTATUS (status) != EXPECTED_STATUS)
|
||||
{
|
||||
fprintf (stderr, "Expected status %d, got %d\n",
|
||||
EXPECTED_STATUS, WEXITSTATUS (status));
|
||||
exit (1);
|
||||
}
|
||||
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user