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 1i71Ny-0007FE-Ki for pgsql-hackers@arkaria.postgresql.org; Sun, 08 Sep 2019 17:54:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i71Nx-0000YQ-CZ for pgsql-hackers@arkaria.postgresql.org; Sun, 08 Sep 2019 17:54:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i71Nx-0000V8-1u for pgsql-hackers@lists.postgresql.org; Sun, 08 Sep 2019 17:54:01 +0000 Received: from smtp.burggraben.net ([2a01:4f8:140:50a2::3:1]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i71Nv-0000LR-8C for pgsql-hackers@lists.postgresql.org; Sun, 08 Sep 2019 17:54:00 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp.burggraben.net (Postfix) with ESMTP id 2F3776002FB; Sun, 8 Sep 2019 19:53:57 +0200 (CEST) X-Spam-Scanned: by amavisd-new at exwg.net Received: from smtp.burggraben.net ([127.0.0.1]) by localhost (ns.burggraben.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4GaQ7wF5mm3I; Sun, 8 Sep 2019 19:53:49 +0200 (CEST) Received: from elch.exwg.net (elch.exwg.net [IPv6:2001:470:7120:1:127b:44ff:fe4f:148d]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "elch.exwg.net", Issuer "Christoph Moench-Tegeder" (verified OK)) by smtp.burggraben.net (Postfix) with ESMTPS; Sun, 8 Sep 2019 19:53:49 +0200 (CEST) Received: by elch.exwg.net (Postfix, from userid 1000) id 661801399FD; Sun, 8 Sep 2019 19:53:49 +0200 (CEST) Date: Sun, 8 Sep 2019 19:53:49 +0200 From: Christoph Moench-Tegeder To: Tom Lane Cc: pgsql-hackers@lists.postgresql.org Subject: Re: MSVC buildfarm critters are not running modules' TAP tests Message-ID: <20190908175349.GA2466@elch.exwg.net> References: <6628.1567958876@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <6628.1567958876@sss.pgh.pa.us> User-Agent: Mutt/1.12.1 (2019-06-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ## Tom Lane (tgl@sss.pgh.pa.us): > I took a stab at fixing this, but lacking a Windows environment > to test in, I can't be sure if it works. The attached does kinda > sorta work if I run it in a Linux environment --- but I found that > system() doesn't automatically expand "t/*.pl" on Linux. Is that > an expected difference between Linux and Windows perl? At least the behaviour on Linux (or any unix) is expected: if you pass a list to perl's system(), perl does not run the command under a shell (a shell is only invoked if there's only a scalar argument to system() (or if the list has only one element) and that argument contains shell metacharacters). That's a source of no small amount "fun" for perl programms "shelling out", because "sometimes" there is no shell. Perl's system hase some more caveats, "perldoc -f system" has a starter on that topic. Regards, Christoph -- Spare Space