Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iZhUG-0007Bp-LB for pgsql-committers@arkaria.postgresql.org; Tue, 26 Nov 2019 20:31:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iZhUF-0003hO-AI for pgsql-committers@arkaria.postgresql.org; Tue, 26 Nov 2019 20:31:03 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iZhUE-0003hH-WB for pgsql-committers@lists.postgresql.org; Tue, 26 Nov 2019 20:31:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iZhUC-000506-D9 for pgsql-committers@lists.postgresql.org; Tue, 26 Nov 2019 20:31:01 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id xAQKUs6n024717; Tue, 26 Nov 2019 15:30:54 -0500 From: Tom Lane To: Peter Eisentraut cc: Michael Paquier , Andrew Dunstan , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Close stdin where it's not needed in TestLib.pm procedures In-reply-to: References: <20191126044302.GC5435@paquier.xyz> Comments: In-reply-to Peter Eisentraut message dated "Tue, 26 Nov 2019 09:51:22 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24715.1574800254.1@sss.pgh.pa.us> Date: Tue, 26 Nov 2019 15:30:54 -0500 Message-ID: <24716.1574800254@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut writes: > On 2019-11-26 05:43, Michael Paquier wrote: >> This one is causing failures with the TAP tests of initdb on all AIX >> animals and prairiedog: >> # Running: initdb --help >> Can't locate IO/Pty.pm in @INC (@INC contains: ../../../src/test/perl/ >> . /usr/local/perl5.8.3/lib/5.8.3/darwin-2level >> [...] >> Unexpected SCALAR(0x1987690) in harness() parameter 7 at >> ../../../src/test/perl//TestLib.pm line 692 > I'm also seeing this problem on macOS in > src/test/recovery/t/016_min_consistency.pl . I just noticed that my buildfarm animal longfin has been stuck for the past 24 hours in t/001_initdb.pl, and I can replicate that in a manual build. ktrace says it's in some sort of loop. Apparently, macOS has got IO::Pty but it doesn't actually work the way this patch expects. Therefore, the proposed patch will leave things still broken for macOS :-( I tried this: diff --git a/src/test/perl/TestLib.pm b/src/test/perl/TestLib.pm index 18b4ce35c2..d67ffc4368 100644 --- a/src/test/perl/TestLib.pm +++ b/src/test/perl/TestLib.pm @@ -192,8 +192,7 @@ INIT } else { - use charnames ':full'; - @no_stdin = ('