Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewpXG-0007HK-Pf for pgsql-committers@arkaria.postgresql.org; Fri, 16 Mar 2018 13:36:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ewpXF-00085X-BM for pgsql-committers@arkaria.postgresql.org; Fri, 16 Mar 2018 13:36:41 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewpXF-00085J-34 for pgsql-committers@lists.postgresql.org; Fri, 16 Mar 2018 13:36:41 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewpXC-0004Uw-EG for pgsql-committers@postgresql.org; Fri, 16 Mar 2018 13:36:39 +0000 Received: from Davids-iMac.local (unknown [173.169.74.224]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteele) by mail.thelabyrinth.net (Postfix) with ESMTPSA id BF1BA5467C; Fri, 16 Mar 2018 13:36:36 +0000 (UTC) Subject: Re: pgsql: Add tests for reinit.c To: Tom Lane , Andrew Dunstan , Michael Paquier Cc: Peter Eisentraut , pgsql-committers@postgresql.org References: <10418.1521157292@sss.pgh.pa.us> <24564.1521172287@sss.pgh.pa.us> From: David Steele Message-ID: Date: Fri, 16 Mar 2018 09:36:36 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <24564.1521172287@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/15/18 11:51 PM, Tom Lane wrote: > I wrote: >> Peter Eisentraut writes: >>> Add tests for reinit.c > >> BTW, buildfarm member jacana hasn't succeeded at this test once. >> The failures look like > >> ok 1 - init fork in base exists >> ok 2 - main fork in base exists >> error running SQL: 'psql::1: ERROR: directory "/home/pgrunner/bf/root/HEAD/pgsql.build/src/test/recovery/tmp_check/tmp_test_wBGG" does not exist' >> while running 'psql -XAtq -d port=50531 host=127.0.0.1 dbname='postgres' -f - -v ON_ERROR_STOP=1' with sql 'CREATE TABLESPACE ts1 LOCATION '/home/pgrunner/bf/root/HEAD/pgsql.build/src/test/recovery/tmp_check/tmp_test_wBGG'' at /home/pgrunner/bf/root/HEAD/pgsql.build/../pgsql/src/test/perl//PostgresNode.pm line 1246. > >> so I hypothesize that there's something wrong with TestLib::tempdir on >> Windows, but no idea what. > > After further staring at that, I think it's some sort of mingw path > weirdness. I notice that the initdb output refers to the PGDATA > directory as > > c:/mingw/msys/1.0/home/pgrunner/bf/root/HEAD/pgsql.build/src/test/recovery/tmp_check/t_014_unlogged_reinit_main_data/pgdata > > and then after that we see "pg_ctl start" succeeding with just > > /home/pgrunner/bf/root/HEAD/pgsql.build/src/test/recovery/tmp_check/t_014_unlogged_reinit_main_data/pgdata > > but this isn't working: > > /home/pgrunner/bf/root/HEAD/pgsql.build/src/test/recovery/tmp_check/tmp_test_esA3 > > perhaps because it lacks the "c:/mingw/msys/1.0" prefix. > > Still no opinion about how to fix it. I looked around for other examples but the only ones I could find are in the pg_basebackup tests (010_pg_basebackup.pl), which exclude these calls for Windows. I don't have a Windows machine to experiment on. Michael, any thoughts? -- -David david@pgmasters.net