Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYwUC-0000CQ-IO for pgsql-committers@arkaria.postgresql.org; Fri, 08 Oct 2021 20:28:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mYwU9-0005Zg-HU for pgsql-committers@arkaria.postgresql.org; Fri, 08 Oct 2021 20:28:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYwU9-0005ZY-Bd for pgsql-committers@lists.postgresql.org; Fri, 08 Oct 2021 20:28:53 +0000 Received: from relay6-d.mail.gandi.net ([217.70.183.198]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYwU5-0002VF-22 for pgsql-committers@lists.postgresql.org; Fri, 08 Oct 2021 20:28:52 +0000 Received: (Authenticated sender: adsend@dunslane.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 5FDAAC0007; Fri, 8 Oct 2021 20:28:46 +0000 (UTC) Subject: Re: pgsql: Reference test binary using TESTDIR in 001_libpq_pipeline.pl. From: Andrew Dunstan To: Andres Freund , pgsql-committers@lists.postgresql.org References: <4941f5a5-2d50-1a0e-6701-14c5fefe92d6@dunslane.net> Message-ID: Date: Fri, 8 Oct 2021 16:28:45 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <4941f5a5-2d50-1a0e-6701-14c5fefe92d6@dunslane.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/8/21 11:41 AM, Andrew Dunstan wrote: > On 10/1/21 6:34 PM, Andres Freund wrote: >> Reference test binary using TESTDIR in 001_libpq_pipeline.pl. >> >> The previous approach didn't really work on windows, due to the PATH separator >> being ';' not ':'. Instead of making the PATH change more complicated, >> reference the binary using the TESTDIR environment. >> >> Reported-By: Andres Freund >> Suggested-By: Andrew Dunstan >> Discussion: https://postgr.es/m/20210930214040.odkdd42vknvzifm6@alap3.anarazel.de >> Backpatch: 14-, where the test was introduced. >> > I don't think any of us were thinking very clearly about this. Of > course, MSVC doesn't build executables in $TESTDIR. If we want to pick > up the executable from where it's built we'll need a little help from > vcregress.pl. I haven't tested it but What I have in mind is something > like the attached. > > Confirmed that this makes the test pass. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com