From patchwork Fri Jun 30 10:38:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 21352 Received: (qmail 62617 invoked by alias); 30 Jun 2017 10:38:51 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 62587 invoked by uid 89); 30 Jun 2017 10:38:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 85DE830EF6B Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=fweimer@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 85DE830EF6B Date: Fri, 30 Jun 2017 12:38:47 +0200 To: libc-alpha@sourceware.org Subject: [PATCH COMMITTED] support: Report actual exit status in support_capture_subprocess_check User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Message-Id: <20170630103847.4FAAA439942F0@oldenburg.str.redhat.com> From: fweimer@redhat.com (Florian Weimer) 2017-06-30 Florian Weimer * support/support_capture_subprocess_check.c (support_capture_subprocess_check): Report actual exit status. diff --git a/support/support_capture_subprocess_check.c b/support/support_capture_subprocess_check.c index 708c89f..e1cf73b 100644 --- a/support/support_capture_subprocess_check.c +++ b/support/support_capture_subprocess_check.c @@ -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) {