]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sat, 7 Jun 2003 23:24:07 +0000 (23:24 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 7 Jun 2003 23:24:07 +0000 (23:24 +0000)
* test-skeleton.c (main): If EXPECTED_STATUS is defined check that
returned status from child matches.

ChangeLog
test-skeleton.c

index ac725242e8daf4fe8d0d91295eeb8edf930e54df..98a1dcd19b70d547f6851e87ab41750731f494bd 100644 (file)
--- a/ChangeLog
+++ b/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>
index e03e74fda626c17dc986b5de80e1c9a869080a23..b9764285f0183a73f4019a83fad3fb0195958e35 100644 (file)
@@ -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
 }