Further weaken new pg_createsubscriber test on Windows.
authorTom Lane <[email protected]>
Mon, 1 Jul 2024 03:20:57 +0000 (23:20 -0400)
committerTom Lane <[email protected]>
Mon, 1 Jul 2024 03:20:57 +0000 (23:20 -0400)
Also omit backslashes (\) in the generated database names on Windows.
As before, perhaps 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 8e8d3f0a02a89aa5b5a6f841af01a285fb3e3f4d..1241bf6c6a7126e7f115f9c392f884eef7199ced 100644 (file)
@@ -30,8 +30,9 @@ sub generate_db
 
    $dbname .= $suffix;
 
-   # Old IPC::Run mis-quotes command line arguments containing '"' on Windows
-   $dbname =~ tr/\"//d if ($windows_os);
+   # On Windows, older IPC::Run versions can mis-quote command line arguments
+   # containing double quote or backslash
+   $dbname =~ tr/\"\\//d if ($windows_os);
 
    $node->command_ok(
        [ 'createdb', $dbname ],