pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Andres Freund <andres@anarazel.de>
To: pgsql-hackers@postgresql.org
Subject: Re: port conflicts when running tests concurrently on windows.
Date: Thu, 9 Dec 2021 09:42:19 -0500
Message-ID: <85a5c9e9-e0ac-693a-fe4e-ba82aa7c6c78@dunslane.net> (raw)
In-Reply-To: <20211209010307.yxzuvsxygy5edqm4@alap3.anarazel.de>
References: <20211208224550.jh4lbcbjsnukwatq@alap3.anarazel.de>
	<20211209003614.d6pvywjokbnojlv5@alap3.anarazel.de>
	<20211209010307.yxzuvsxygy5edqm4@alap3.anarazel.de>


On 12/8/21 20:03, Andres Freund wrote:
>
> I wonder if we need a host2unix() helper accompanying perl2host()? Seems nicer
> than sprinkling s!\\!/!g if $PostgreSQL::Test::Utils::windows_os in a growing
> number of places...
>

Probably a good idea. I would call it canonical_path or something like
that. / works quite happily as a path separator in almost all contexts
on Windows - there are a handful of command line programs that choke on
it - but sometimes you need to quote the path. WHen I recently provided
for cross version upgrade testing on MSVC builds I just quoted
everything. On Unix/Msys the shell just removes the quotes.


cheers


andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com






view thread (12+ messages)  latest in thread

Message-ID: <85a5c9e9-e0ac-693a-fe4e-ba82aa7c6c78@dunslane.net>
Permalink:  ../85a5c9e9-e0ac-693a-fe4e-ba82aa7c6c78@dunslane.net/
Also on:    postgresql.org/message-id/85a5c9e9-e0ac-693a-fe4e-ba82aa7c6c78@dunslane.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: andrew@dunslane.net, andres@anarazel.de
  Subject: Re: port conflicts when running tests concurrently on windows.
  In-Reply-To: <85a5c9e9-e0ac-693a-fe4e-ba82aa7c6c78@dunslane.net>
  References: <20211208224550.jh4lbcbjsnukwatq@alap3.anarazel.de> <20211209003614.d6pvywjokbnojlv5@alap3.anarazel.de> <20211209010307.yxzuvsxygy5edqm4@alap3.anarazel.de> <85a5c9e9-e0ac-693a-fe4e-ba82aa7c6c78@dunslane.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox