From unknown Fri Aug 15 14:17:06 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#61670 <61670@debbugs.gnu.org> To: bug#61670 <61670@debbugs.gnu.org> Subject: Status: [PATCH] Improve test for blocked signals Reply-To: bug#61670 <61670@debbugs.gnu.org> Date: Fri, 15 Aug 2025 21:17:06 +0000 retitle 61670 [PATCH] Improve test for blocked signals reassign 61670 automake-patches submitter 61670 Jacob Bachmeyer severity 61670 normal tag 61670 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 21 00:41:32 2023 Received: (at submit) by debbugs.gnu.org; 21 Feb 2023 05:41:32 +0000 Received: from localhost ([127.0.0.1]:54282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pULP9-00030W-SD for submit@debbugs.gnu.org; Tue, 21 Feb 2023 00:41:32 -0500 Received: from lists.gnu.org ([209.51.188.17]:46208) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUIIC-0005li-F0 for submit@debbugs.gnu.org; Mon, 20 Feb 2023 21:22:08 -0500 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 1pUIIC-0006O2-4Z for automake-patches@gnu.org; Mon, 20 Feb 2023 21:22:08 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUIIB-0000A3-RI for automake-patches@gnu.org; Mon, 20 Feb 2023 21:22:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=To:Subject:Date:From:mime-version:in-reply-to: references; bh=+SRCQpe+lW55b21jPerNKf7h2UQDNTHtblaxHbA7wrk=; b=ENBZxaLrgCgcsb mirr03xj6hyW56GPn9PKuS/bEy2IugH2GEkVBw6fsxUxrAr0QGCNkiUk3WpL/ypEgZP6PDcQ5lizY nDCrSMmV6sucKiBFC9l0EtSi2UfAslzsIHWxa5PH2+Az1kN1Vbx1uAXtRqHLP/ZFARxeMU2ZElci2 XvHUa+PtKLb/ismWp7zU3htEN3bLdCOLN6L9BUC7BqMS5OLHy2JHv3Il8J9ZcerOFqmo+7DGGTpHq TpSnejpqZp7gHH4X1lsAu2RMGZhnYEOTTZKmTOSpzOWLBG2Fb139EYNp4b/0IcvtUACDDjko3lM6i g9N29RLPOAwDAjaActpA==; Received: from jcb by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1pUIIB-0004wY-5H for automake-patches@gnu.org; Mon, 20 Feb 2023 21:22:07 -0500 From: Jacob Bachmeyer Date: Wed, 8 Feb 2023 23:07:26 -0600 Subject: [PATCH] Improve test for blocked signals To: automake-patches@gnu.org Message-Id: X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 21 Feb 2023 00:41:23 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.2 (-) This fixes ERRORs reported by: * t/parallel-tests-interrupt.tap * t/self-check-exit.tap * t/self-check-is-blocked-signal.tap * t/tap-signal.tap * t/ax/am-test-lib.sh (is_blocked_signal): Revise Perl code to more closely follow documented interfaces where available. This also works around bugs and limitations of the POSIX module in Perl 5.6. --- t/ax/am-test-lib.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/t/ax/am-test-lib.sh b/t/ax/am-test-lib.sh index bdf699889..bfa1d84b2 100644 --- a/t/ax/am-test-lib.sh +++ b/t/ax/am-test-lib.sh @@ -103,13 +103,14 @@ is_blocked_signal () # Use perl, since trying to do this portably in the shell can be # very tricky, if not downright impossible. For reference, see: # - if $PERL -w -e ' - use strict; - use warnings FATAL => "all"; - use POSIX; - my %oldsigaction = (); - sigaction('"$1"', 0, \%oldsigaction); - exit ($oldsigaction{"HANDLER"} eq "IGNORE" ? 0 : 77); + if $PERL -Mstrict -Mwarnings=FATAL,all -MPOSIX -Mconstant=SN,"$1" -e ' + my $new = POSIX::SigAction->new(sub {}); + my $old = POSIX::SigAction->new(); + { no warnings q[uninitialized]; sigaction(SN, $new, $old) } + my $oldhandler; + if ($old->can(q[handler])) { $oldhandler = $old->handler } + else { $oldhandler = $old->{HANDLER} } + exit ($oldhandler eq "IGNORE" ? 0 : 77); '; then return 0 elif test $? -eq 77; then -- 2.17.1 From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 29 15:55:35 2023 Received: (at 61670-done) by debbugs.gnu.org; 29 Mar 2023 19:55:35 +0000 Received: from localhost ([127.0.0.1]:55056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phbtP-0002br-6l for submit@debbugs.gnu.org; Wed, 29 Mar 2023 15:55:35 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:57762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phbtM-0002bb-R0 for 61670-done@debbugs.gnu.org; Wed, 29 Mar 2023 15:55:33 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id C244A3C02213D; Wed, 29 Mar 2023 12:55:26 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id jMqyPOulQvud; Wed, 29 Mar 2023 12:55:26 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 8F7383C097AFB; Wed, 29 Mar 2023 12:55:26 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 8F7383C097AFB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1680119726; bh=+QSOApqOPs5Ws5pqRxZjF/n+G4v4ZTe/3xhj1+TG7O8=; h=Message-ID:Date:MIME-Version:To:From; b=PZ7oGLR4WM5/dZ86g0yIRrkWpex4EVpv5NtNsZvFncFR3E93iePBwTVYfMkZqeJqU 4fH5s9LzOg8dGFbukRrjyoPsH6PcZZbCYWJ2szEnZnVv6e9ucvYc1X4SLc6K2y6lI1 9Y+qO549yG8N02fXUfZoOSxhddwpDTSOBfngm0TfeDhL6sKyZ9nXXJ0P20iVFJkpDx q3Mympj/jw63rW8ca5MxgfMfYkEORBGzknMQj3dWtnB4WAvIcOvy8zpEqCSeJEbotW KOJTupvgAdlrZj2t7W7TtJVMTbh7yZFQgrNYlj87X1WLJKZqGWD7jJlPAuQTTplnbT 1Np4jg9Ytb2xA== X-Virus-Scanned: amavisd-new at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id YZJ0HTnVYXWf; Wed, 29 Mar 2023 12:55:26 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 6B87C3C02213D; Wed, 29 Mar 2023 12:55:26 -0700 (PDT) Message-ID: Date: Wed, 29 Mar 2023 12:55:26 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Content-Language: en-US To: Jacob Bachmeyer From: Paul Eggert Subject: [PATCH] Improve test for blocked signals Organization: UCLA Computer Science Department Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61670-done Cc: 61670-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Thanks, I installed that patch into Automake. From unknown Fri Aug 15 14:17:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 27 Apr 2023 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator