From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id xD/ZJHEHVWTPEgAASxT56A (envelope-from ) for ; Fri, 05 May 2023 15:41:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oCw+InEHVWQ6uwAAauVa8A (envelope-from ) for ; Fri, 05 May 2023 15:41:05 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 68D563E9BE for ; Fri, 5 May 2023 15:41:05 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puvfL-0007GN-E5; Fri, 05 May 2023 09:40:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1puvfG-0007F1-PU for bug-guix@gnu.org; Fri, 05 May 2023 09:40:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1puvfG-00054L-Gg for bug-guix@gnu.org; Fri, 05 May 2023 09:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1puvfG-0005pZ-C1 for bug-guix@gnu.org; Fri, 05 May 2023 09:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#62334: [PATCH 3/3] tests: Test that system* works if stdin/out/err isn't backed by fdes Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 05 May 2023 13:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62334 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Josselin Poiret Cc: 63024@debbugs.gnu.org, 62334@debbugs.gnu.org, Greg Hogan , Simon Tournier Received: via spool by 62334-submit@debbugs.gnu.org id=B62334.168329397422331 (code B ref 62334); Fri, 05 May 2023 13:40:02 +0000 Received: (at 62334) by debbugs.gnu.org; 5 May 2023 13:39:34 +0000 Received: from localhost ([127.0.0.1]:53442 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puven-0005o5-Tv for submit@debbugs.gnu.org; Fri, 05 May 2023 09:39:34 -0400 Received: from jpoiret.xyz ([206.189.101.64]:53820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puvej-0005nI-Fa; Fri, 05 May 2023 09:39:29 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id BD1B018531A; Fri, 5 May 2023 13:39:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1683293968; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zcCymRxAZIMJp6WjBBI7ypmG8495TsJ6cpuRd3n5p14=; b=ewTAs0vhw4kCgQDQnOj9ndYs3vzjIpqMusxlYox5J0T+AJHvFSKh6Zv2OV1L0sebfaRPzt fr+/CEzk0UTgjqVziFC4BXx3qXV8A8GhXds5O6wKpMm2BAF9edftyS+/jB8x9TlzUiDDQ2 IUXabyW2E4I9r38srhJe1uqh4ksDbDCPIJ0Hgi+La406zbFxWz3Oi45dxiWQXbvdVjud+J 0QTlU/weCUqQZVhxAIhSLPA1KpVQsyINJy3snX9IXBX7TYLdlow/2wT9eIwFQD7IMD4DFi VwcDTN5bKHjiPfuQvpkSiS6rLp9flrcNH4Nb9mVog3F3nrINwIHwkg0CtCq/pA== Date: Fri, 5 May 2023 15:39:24 +0200 Message-Id: <19baf4a40b5ce28624a7bcb3f9381fce0f318cf3.1683293896.git.dev@jpoiret.xyz> In-Reply-To: <87mt2l4whd.fsf@gnu.org> References: <87mt2l4whd.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spamd-Bar: ++ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Josselin Poiret From: Josselin Poiret via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683294065; a=rsa-sha256; cv=none; b=Hw5zis+5C4ftAI7oXPu5j6OcPt9P0jPG1SoQlbVlj0hrSTtIfy+8NKoELp/bfmdEf9YO0Q SvVQk88WQkk4QG7Gdh7bp00anf+RBz6z8M7Z+ARfvzqtfqNBV48cb8kS9WpyF3rq6S9DRa F28S4L+NNq287clcb0QMRH+cGU/XmH4rCLrE2S4JkgY/rTdv/HVjGMSi3tp4x364/NCXa+ ud1Fcp4Sdiy+ARSdMjoG/VOyTmQ7NJURotdThCl8GTexaiB6szDNzaGJmaqGf3uXSCRAAc YnAJB07lKbsBdZ9VzakBLC9CF47ybCXjuS+rSdAGY7t6NCKFVYs6nre+8srOYA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=ewTAs0vh; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683294065; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=zcCymRxAZIMJp6WjBBI7ypmG8495TsJ6cpuRd3n5p14=; b=Hsa6a1o+G1TOzl6SeuyVtl8W7Xf4kCca7H2BKFrSXMfF8ES60+A+rlTYud/fJqv/JZ95vJ sR9Jyu6c0iAP98LP2tvtYS43B4PSdZhE4XeOXfcfu0fwKWCtbtZMn3dg6XK+60uvE0CP4E ILKJdFfReFfMNIpZt+AD+q4g9fBVmf6VNg1O73IkTyeOZYqP+hof7MPz+URaL8c4jwpVrg M83NpS/kCoEGdRPc3Ad2EEGDOjX6TEqPbnbSLel8eA3XspE6blPqzN5B6S1up+GZ7aqzI1 fB1jxHIAMU3pJ04zYQnZs1r95scjNS6ZW4jh250qSy3AADoOPGJt6nuumG99NQ== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=ewTAs0vh; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.70 X-Spam-Score: -0.70 X-Migadu-Queue-Id: 68D563E9BE X-TUID: STcLobLvlOeF From: Ludovic Courtès * test-suite/tests/posix.test: New test for https://bugs.gnu.org/63024. --- test-suite/tests/posix.test | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/test-suite/tests/posix.test b/test-suite/tests/posix.test index d5cf47cda..18dad8902 100644 --- a/test-suite/tests/posix.test +++ b/test-suite/tests/posix.test @@ -374,7 +374,17 @@ (system* "sh" "-c" "echo bong >&2")))))))) (and (zero? (status:exit-val status)) - (call-with-input-file file get-string-all))))) + (call-with-input-file file get-string-all)))) + + (pass-if-equal "https://bugs.gnu.org/63024" + 0 + (if (file-exists? "/proc/self/fd/0") ;on GNU/Linux? + (parameterize ((current-output-port (%make-void-port "w0"))) + (system* "guile" "-c" + (object->string + '(exit (string=? "/dev/null" + (readlink "/proc/self/fd/1")))))) + (throw 'unresolved)))) ;; ;; spawn -- 2.39.2