X-Loop: help-debbugs@HIDDEN Subject: bug#71796: [PATCH] Do not depend on tmpnam in posix.test. Resent-From: Tomas Volf <~@wolfsden.cz> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guile@HIDDEN Resent-Date: Thu, 27 Jun 2024 13:45:02 +0000 Resent-Message-ID: <handler.71796.B.17194958525902 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 71796 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch To: 71796 <at> debbugs.gnu.org Cc: Tomas Volf <~@wolfsden.cz> X-Debbugs-Original-To: bug-guile@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.17194958525902 (code B ref -1); Thu, 27 Jun 2024 13:45:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jun 2024 13:44:12 +0000 Received: from localhost ([127.0.0.1]:41315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sMpQ4-0001X7-FV for submit <at> debbugs.gnu.org; Thu, 27 Jun 2024 09:44:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:33718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1sMpQ2-0001Wz-Er for submit <at> debbugs.gnu.org; Thu, 27 Jun 2024 09:44:10 -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 <~@wolfsden.cz>) id 1sMpPz-0004bx-81 for bug-guile@HIDDEN; Thu, 27 Jun 2024 09:44:07 -0400 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1sMpPw-0007sH-UJ for bug-guile@HIDDEN; Thu, 27 Jun 2024 09:44:06 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id 8ECB12A8732; Thu, 27 Jun 2024 13:44:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1719495841; bh=xiIzO1bMtvZnR6hCg8nJFgf3VS4wt7ZXD1lNBJm7l6o=; h=From:To:Cc:Subject:Date; b=QMZS1PuJOLVv5b0kpa6VTWJ8may9jsh1VbxywgL1bg88YTTA3VquGMj2PVbrsP5wb IFdC1KlaOxLAXHPUIHm3PbrBm1dPxhJhNqJ/dzHOc0bt7r7iMErDjPeLxRzjddXgK2 XK/AqSkS4Ly8y440fjPnLx4aCk0+J/hzy0DBC1bVW3A39WpPshXZEOyZEz8hrFWfl8 7/9NaBvkSnNqPESRSAo/xgbpPK4bltvUoq8H3PKNgF0iCuOyECGQGkNw94V1/0X0hY o+NISbqw9CCFLLk0rhIY62tQ5jcFnOwY9FzYYEoYsM8K2JY3kXHxQfmRUohbHO1gpx UfZ7lzeatAPwBNauLrppliffKhXfhUmFW4473XnbtRE+IV6LT/7OqgFlbuQZkXvWxe AOgZxdVOvb1AvewHvtAnxuZYMguYvvyEqH1qWHMnLtfivz/lhvYaDAlJYLBgAN9aPG GGbvW7VsG0OMsIBWxCAnBhBTDFzPCDUOhT9H8Vkm+thXdQ0nZEmV4UUsbkbkip2UXy b4NJZ9ehDZ1Dn9dicRCRTR8jA+u1HwAfpVhnGrBjdwt5hVMnzY1u8CzXqJLizFl+lI K0QjioT5KuIF/9zXyVL8Yn14kB1AnxQCy54qounIRxLC+IDUUX7BR3I6ut3+zGCsf3 dvn088ZDHCRNdY9XmmJK0/gA= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id 264542A8428; Thu, 27 Jun 2024 13:44:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1719495841; bh=xiIzO1bMtvZnR6hCg8nJFgf3VS4wt7ZXD1lNBJm7l6o=; h=From:To:Cc:Subject:Date; b=QMZS1PuJOLVv5b0kpa6VTWJ8may9jsh1VbxywgL1bg88YTTA3VquGMj2PVbrsP5wb IFdC1KlaOxLAXHPUIHm3PbrBm1dPxhJhNqJ/dzHOc0bt7r7iMErDjPeLxRzjddXgK2 XK/AqSkS4Ly8y440fjPnLx4aCk0+J/hzy0DBC1bVW3A39WpPshXZEOyZEz8hrFWfl8 7/9NaBvkSnNqPESRSAo/xgbpPK4bltvUoq8H3PKNgF0iCuOyECGQGkNw94V1/0X0hY o+NISbqw9CCFLLk0rhIY62tQ5jcFnOwY9FzYYEoYsM8K2JY3kXHxQfmRUohbHO1gpx UfZ7lzeatAPwBNauLrppliffKhXfhUmFW4473XnbtRE+IV6LT/7OqgFlbuQZkXvWxe AOgZxdVOvb1AvewHvtAnxuZYMguYvvyEqH1qWHMnLtfivz/lhvYaDAlJYLBgAN9aPG GGbvW7VsG0OMsIBWxCAnBhBTDFzPCDUOhT9H8Vkm+thXdQ0nZEmV4UUsbkbkip2UXy b4NJZ9ehDZ1Dn9dicRCRTR8jA+u1HwAfpVhnGrBjdwt5hVMnzY1u8CzXqJLizFl+lI K0QjioT5KuIF/9zXyVL8Yn14kB1AnxQCy54qounIRxLC+IDUUX7BR3I6ut3+zGCsf3 dvn088ZDHCRNdY9XmmJK0/gA= From: Tomas Volf <~@wolfsden.cz> Date: Thu, 27 Jun 2024 15:43:35 +0200 Message-ID: <20240627134335.26287-1-~@wolfsden.cz> X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) `tmpnam' is a deprecated procedure that can be excluded during a configure (`--disable-tmpnam'). There currently was a single test relying on it, and therefore failing is such configuration. This commit switches to mkstemp instead. * test-suite/tests/posix.test ("system*"): Use mkstemp instead of tmpnam. --- test-suite/tests/posix.test | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test-suite/tests/posix.test b/test-suite/tests/posix.test index 18dad8902..0d75eb145 100644 --- a/test-suite/tests/posix.test +++ b/test-suite/tests/posix.test @@ -362,7 +362,8 @@ (pass-if-equal "https://bugs.gnu.org/52835" "bong\n" - (let ((file (tmpnam))) + (let* ((port (mkstemp "T-XXXXXX")) + (file (port-filename port))) ;; Redirect stdout and stderr to FILE. (define status (call-with-output-file file @@ -373,8 +374,9 @@ (lambda () (system* "sh" "-c" "echo bong >&2")))))))) + (delete-file file) (and (zero? (status:exit-val status)) - (call-with-input-file file get-string-all)))) + (get-string-all port)))) (pass-if-equal "https://bugs.gnu.org/63024" 0 -- 2.45.1
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Tomas Volf <~@wolfsden.cz> Subject: bug#71796: Acknowledgement ([PATCH] Do not depend on tmpnam in posix.test.) Message-ID: <handler.71796.B.17194958525902.ack <at> debbugs.gnu.org> References: <20240627134335.26287-1-~@wolfsden.cz> X-Gnu-PR-Message: ack 71796 X-Gnu-PR-Package: guile X-Gnu-PR-Keywords: patch Reply-To: 71796 <at> debbugs.gnu.org Date: Thu, 27 Jun 2024 13:45:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guile@HIDDEN If you wish to submit further information on this problem, please send it to 71796 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 71796: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D71796 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
Received: (at control) by debbugs.gnu.org; 27 Jun 2024 14:36:30 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 27 10:36:30 2024 Received: from localhost ([127.0.0.1]:43095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sMqEg-000693-3k for submit <at> debbugs.gnu.org; Thu, 27 Jun 2024 10:36:30 -0400 Received: from wolfsden.cz ([37.205.8.62]:60562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1sMqEe-00068O-FA for control <at> debbugs.gnu.org; Thu, 27 Jun 2024 10:36:29 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id BA1252A86B7; Thu, 27 Jun 2024 14:36:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1719498983; bh=KIBANKDs53JzwQSF8opmB9ziIAAbDDNFxu4erGdikaY=; h=Date:To:From:Subject; b=Ok5Yo83qQFbRDSfBQNgSnQk1GBhaLfeprgg4UHWWw5NF+QHnKnb5ueqLDTpwGkAnS xIC5iZTAE/y3Rd93n1kLKXO+anabX1/zPMo3jo82Uka1504l7UffmOw4xheBXBctPJ sHI9z0UWRo5TjuVmFcDtSGyD/1efa88OupTV5NP0CgwRNFv2TpYk8X7fK2qlb3OW4F HDMK2kcqR9tBWfBZGZK41wDtb6BqNrz2GcMSoNW+jpcw3wkK6NN5pLmhmIPqfKGuAV t9QSWaaFUt3SRPx7AUc6IF5JaRhRH+t21fiqiXar+Lb7M2n9JPTFMhyuz4bDzilso5 NudWWbYK/zzV6ImVGKZ10EV7JOBXP6hJqeJYe+lNEdDWUyhuLm6b83nMvCdJbDPp+8 nyIpMy/k0ha1FIOhTfadvyRZj21LedPR2YK7co/YxNf/0WMp5/GfUmeUY1c/6vPHz5 xKu2OAApQoUFvSeL/Jvtvcb2y09qpfnrqNNT6qJNzA2Kc9p0VaoKH4RS6CHsBn3Y7D mJK6k7EP91itIktKfvB7+W5D5tDsxXq0v0pDQyMVu6Ahn6EfOS09fMZMK7mIsERo18 53ZCsSp6RWICG751c1g+38lGmHvIJ9sSAeT0/O2PpCuEbD3FUptrRvHUeyd2jg09tE P3kGHwEJkCbMNrLHbbdMJD1Y= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id 743202A2673 for <control <at> debbugs.gnu.org>; Thu, 27 Jun 2024 14:36:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1719498983; bh=KIBANKDs53JzwQSF8opmB9ziIAAbDDNFxu4erGdikaY=; h=Date:To:From:Subject; b=Ok5Yo83qQFbRDSfBQNgSnQk1GBhaLfeprgg4UHWWw5NF+QHnKnb5ueqLDTpwGkAnS xIC5iZTAE/y3Rd93n1kLKXO+anabX1/zPMo3jo82Uka1504l7UffmOw4xheBXBctPJ sHI9z0UWRo5TjuVmFcDtSGyD/1efa88OupTV5NP0CgwRNFv2TpYk8X7fK2qlb3OW4F HDMK2kcqR9tBWfBZGZK41wDtb6BqNrz2GcMSoNW+jpcw3wkK6NN5pLmhmIPqfKGuAV t9QSWaaFUt3SRPx7AUc6IF5JaRhRH+t21fiqiXar+Lb7M2n9JPTFMhyuz4bDzilso5 NudWWbYK/zzV6ImVGKZ10EV7JOBXP6hJqeJYe+lNEdDWUyhuLm6b83nMvCdJbDPp+8 nyIpMy/k0ha1FIOhTfadvyRZj21LedPR2YK7co/YxNf/0WMp5/GfUmeUY1c/6vPHz5 xKu2OAApQoUFvSeL/Jvtvcb2y09qpfnrqNNT6qJNzA2Kc9p0VaoKH4RS6CHsBn3Y7D mJK6k7EP91itIktKfvB7+W5D5tDsxXq0v0pDQyMVu6Ahn6EfOS09fMZMK7mIsERo18 53ZCsSp6RWICG751c1g+38lGmHvIJ9sSAeT0/O2PpCuEbD3FUptrRvHUeyd2jg09tE P3kGHwEJkCbMNrLHbbdMJD1Y= Date: Thu, 27 Jun 2024 16:36:23 +0200 Message-ID: <77dfe507c8914acfdff68895ef88fe54@HIDDEN> To: control <at> debbugs.gnu.org From: Tomas Volf <~@wolfsden.cz> Subject: control message for bug #71796 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) merge 71796 71742 quit
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.