From patchwork Wed Mar 11 00:05:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: develop--- via Libc-alpha X-Patchwork-Id: 1252479 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sourceware.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=QxPs+Q7k; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=aM6IIOdh; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48cXKg4rH9z9sPJ for ; Wed, 11 Mar 2020 11:05:43 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B341D395B033; Wed, 11 Mar 2020 00:05:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B341D395B033 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1583885138; bh=MkqVBagLW+64esvY3k4sW/qqnHUFvQsDKVU0FvDPFZs=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=QxPs+Q7kSlMqrEVhJJRnXtU1bB3tqUaHE/JG0XMc3yzZOh0wMs7N7Uhn40dBYzw2s r2jN2Xjx2A7IqheyMTSedJUonOMYpv21Lp+Lz7uaqO8QO5uLZMqQR49sruIRPtN0yX kdwkxrHGx6YJnYFBYV2EIFjP3utfd0m/184tyDNI= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by sourceware.org (Postfix) with ESMTPS id B2D27395B006 for ; Wed, 11 Mar 2020 00:05:36 +0000 (GMT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id AEA8522293; Tue, 10 Mar 2020 20:05:34 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 10 Mar 2020 20:05:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=MkqVBagLW+64esvY3 k4sW/qqnHUFvQsDKVU0FvDPFZs=; b=aM6IIOdht70EXiO4FZT4eRGXs1Pl+e8zp ufRIs66x9Ad4druIT36jP/O2Qa+LtLme+AbThd5wOVhvLD/AArjcxPfXHsoS2vlH F1F7iwKwGUsUU+v3eG8cIZ6jfaoNoHjSTVOmUEHScJb7xc+d7mFAdaSDhdGPbw/j B7d1YPIa4/TrxeBwQSa4x4GtP8QkogU7NmHYAda6HAkenkLknj2FIwmQbXAiM9E/ iByRIpz9qvYOk2013qeuXJ9WjnFnI5gv2g8anjCf0fIxhz2kTtNIZDfGtavyXnwF raOH99ZWxMdlJkNPLGGohhTtibW2Varw381R+LJqRUtKfpaMQLURQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddvuddgudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepofhitghhrggvlhcujfhuughsohhnqdffohihlhgvuceomhhitghh rggvlhdrhhhuughsohhnsegtrghnohhnihgtrghlrdgtohhmqeenucfkphepuddtfedrvd effedrvddvtddrudekleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpehmfihhuhgushhonhesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Received: from localhost (unknown [103.233.220.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 02F433280068; Tue, 10 Mar 2020 20:05:33 -0400 (EDT) To: libc-alpha@sourceware.org Subject: [PATCH] test-container: print errno when execvp fails Date: Wed, 11 Mar 2020 13:05:25 +1300 Message-Id: <20200311000525.918662-1-michael.hudson@canonical.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 X-Spam-Status: No, score=-27.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Michael Hudson-Doyle via Libc-alpha From: develop--- via Libc-alpha Reply-To: Michael Hudson-Doyle Cc: Michael Hudson-Doyle Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" I'm debugging a situation where lots of tests using test-container fail and it's possible knowing errno would help understand why. --- support/test-container.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/test-container.c b/support/test-container.c index e970eb2c18..dff2ff379e 100644 --- a/support/test-container.c +++ b/support/test-container.c @@ -1145,7 +1145,7 @@ main (int argc, char **argv) execvp (new_child_exec, new_child_proc); /* Or don't run the child? */ - FAIL_EXIT1 ("Unable to exec %s\n", new_child_exec); + FAIL_EXIT1 ("Unable to exec %s: %s\n", new_child_exec, strerror (errno)); /* Because gcc won't know error () never returns... */ exit (EXIT_UNSUPPORTED);