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 1ewgPV-0007my-7Z for pgsql-committers@arkaria.postgresql.org; Fri, 16 Mar 2018 03:52:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ewgPU-0007Su-5f for pgsql-committers@arkaria.postgresql.org; Fri, 16 Mar 2018 03:52:04 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewgP6-0006dR-58 for pgsql-committers@lists.postgresql.org; Fri, 16 Mar 2018 03:51:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewgP1-0005qk-Qq for pgsql-committers@postgresql.org; Fri, 16 Mar 2018 03:51:38 +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 w2G3pRx7024565; Thu, 15 Mar 2018 23:51:27 -0400 From: Tom Lane To: Andrew Dunstan cc: Peter Eisentraut , pgsql-committers@postgresql.org, David Steele Subject: Re: pgsql: Add tests for reinit.c In-reply-to: <10418.1521157292@sss.pgh.pa.us> References: <10418.1521157292@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Thu, 15 Mar 2018 19:41:32 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24563.1521172287.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 15 Mar 2018 23:51:27 -0400 Message-ID: <24564.1521172287@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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=3D50531 host=3D127.0.0.1 dbname=3D'pos= tgres' -f - -v ON_ERROR_STOP=3D1' 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/p= erl//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_te= st_esA3 perhaps because it lacks the "c:/mingw/msys/1.0" prefix. Still no opinion about how to fix it. regards, tom lane