Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update.
	* test-skeleton.c (main): If EXPECTED_STATUS is defined check that
	returned status from child matches.
  • Loading branch information
Ulrich Drepper committed Jun 7, 2003
1 parent e1d8e1b commit ede0f73
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
@@ -1,5 +1,8 @@
2003-06-07 Ulrich Drepper <drepper@redhat.com>

* test-skeleton.c (main): If EXPECTED_STATUS is defined check that
returned status from child matches.

* Makeconfig (gnulib): Add -lgcc_eh once again.

2003-06-06 Ulrich Drepper <drepper@redhat.com>
Expand Down
11 changes: 11 additions & 0 deletions test-skeleton.c
Expand Up @@ -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
}

0 comments on commit ede0f73

Please sign in to comment.