Temporarily(?) weaken new pg_createsubscriber test on Windows.
authorTom Lane <[email protected]>
Sun, 30 Jun 2024 21:33:06 +0000 (17:33 -0400)
committerTom Lane <[email protected]>
Sun, 30 Jun 2024 21:33:32 +0000 (17:33 -0400)
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

src/bin/pg_basebackup/t/040_pg_createsubscriber.pl

index 68b798333d1ca3d0a3045a68334376fe760bd355..9e2d838503ebcc96b86ac8a7547b1fc758da94a5 100644 (file)
@@ -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");