support: Report actual exit status in support_capture_subprocess_check
authorFlorian Weimer <fweimer@redhat.com>
Fri, 30 Jun 2017 09:30:48 +0000 (11:30 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 30 Jun 2017 09:30:48 +0000 (11:30 +0200)
ChangeLog
support/support_capture_subprocess_check.c

index 108f8cd..b340c7f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2017-06-30  Florian Weimer  <fweimer@redhat.com>
 
+       * support/support_capture_subprocess_check.c
+       (support_capture_subprocess_check): Report actual exit status.
+
+2017-06-30  Florian Weimer  <fweimer@redhat.com>
+
        [BZ #19570]
        * resolv/res_send.c (nameserver_offset): New function.
        (__libc_res_nsend): Use it to implement RES_ROTATE.
index 708c89f..e1cf73b 100644 (file)
@@ -48,7 +48,7 @@ support_capture_subprocess_check (struct support_capture_subprocess *proc,
     {
       print_context (context, &failed);
       printf ("error:   expected exit status: %d\n", status);
-      printf ("error:   actual exit status:   %d\n", status);
+      printf ("error:   actual exit status:   %d\n", proc->status);
     }
   if (!(allowed & sc_allow_stdout) && proc->out.length != 0)
     {