Make PG_TEST_USE_UNIX_SOCKETS work for tap tests on windows.
authorAndres Freund <andres@anarazel.de>
Mon, 13 Dec 2021 19:17:41 +0000 (11:17 -0800)
committerAndres Freund <andres@anarazel.de>
Mon, 13 Dec 2021 19:29:51 +0000 (11:29 -0800)
commit45f52709d86ceaaf282a440f6311c51fc526340b
treefdefba9bdee27fbe374926ee077b56334d956669
parentfa0e03c15a9f67671f0a6e0ec66d5e2ac7119c8a
Make PG_TEST_USE_UNIX_SOCKETS work for tap tests on windows.

We need to replace windows-style \ path separators with / when putting socket
directories either in postgresql.conf or libpq connection strings, otherwise
they are interpreted as escapes.

Author: Andres Freund <andres@anarazel.de>
Reviewed-By: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Discussion: https://postgr.es/m/4da250a5-4222-1522-f14d-8a72bcf7e38e@enterprisedb.com
src/bin/pg_ctl/t/001_start_stop.pl
src/test/perl/PostgreSQL/Test/Cluster.pm