From: Peter Eisentraut Date: Thu, 25 Jan 2018 14:14:24 +0000 (-0500) Subject: Allow spaces in connection strings in SSL tests X-Git-Tag: REL_11_BETA1~883 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a3fdbdf766d80b21271e32da865801ab005d786;p=postgresql Allow spaces in connection strings in SSL tests Connection strings can have items with spaces in them, wrapped in quotes. The tests however ran a SELECT '$connstr' upon connection which broke on the embedded quotes. Use dollar quotes on the connstr to protect against this. This was hit during the development of the macOS Secure Transport patch, but is independent of it. Author: Daniel Gustafsson --- diff --git a/src/test/ssl/ServerSetup.pm b/src/test/ssl/ServerSetup.pm index 02f8028b2b..b4d5746e20 100644 --- a/src/test/ssl/ServerSetup.pm +++ b/src/test/ssl/ServerSetup.pm @@ -42,7 +42,7 @@ sub run_test_psql my $logstring = $_[1]; my $cmd = [ - 'psql', '-X', '-A', '-t', '-c', "SELECT 'connected with $connstr'", + 'psql', '-X', '-A', '-t', '-c', "SELECT \$\$connected with $connstr\$\$", '-d', "$connstr" ]; my $result = run_log($cmd);