From: Tom Lane Date: Sun, 30 Jun 2024 21:33:06 +0000 (-0400) Subject: Temporarily(?) weaken new pg_createsubscriber test on Windows. X-Git-Tag: REL_17_BETA3~131 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=54508209178bc73a497c460bd0ffd1645dceb1a2;p=postgresql.git Temporarily(?) weaken new pg_createsubscriber test on Windows. Don't include double-quotes (") in the generated database names on Windows. Doing so tickles a bug in older versions of IPC::Run, which fail to quote command line arguments correctly for that platform. Possibly we can revert this after updating affected buildfarm animals. Discussion: https://postgr.es/m/2509767.1719773880@sss.pgh.pa.us --- diff --git a/src/bin/pg_basebackup/t/040_pg_createsubscriber.pl b/src/bin/pg_basebackup/t/040_pg_createsubscriber.pl index 68b798333d1..9e2d838503e 100644 --- a/src/bin/pg_basebackup/t/040_pg_createsubscriber.pl +++ b/src/bin/pg_basebackup/t/040_pg_createsubscriber.pl @@ -29,6 +29,10 @@ sub generate_db } $dbname .= $suffix; + + # Old IPC::Run mis-quotes command line arguments containing '"' on Windows + $dbname =~ tr/\"//d if ($windows_os); + $node->command_ok( [ 'createdb', $dbname ], "created database with ASCII characters from $from_char to $to_char");