support: Report actual exit status in support_capture_subprocess_check

This commit is contained in:
Florian Weimer 2017-06-30 11:30:48 +02:00
parent 5b757a51b5
commit 5f17245d3e
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
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]

View 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)
{