aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2018-01-25 09:14:24 -0500
committerPeter Eisentraut <peter_e@gmx.net>2018-01-25 09:14:24 -0500
commit4a3fdbdf766d80b21271e32da865801ab005d786 (patch)
treebecdd9255bdb1d1d07ca1c1bfe285a539b7666be
parent945f71db845262e7491b5fe4403b01147027576b (diff)
downloadpostgresql-4a3fdbdf766d80b21271e32da865801ab005d786.tar.gz
postgresql-4a3fdbdf766d80b21271e32da865801ab005d786.zip
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 <daniel@yesql.se>
-rw-r--r--src/test/ssl/ServerSetup.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ssl/ServerSetup.pm b/src/test/ssl/ServerSetup.pm
index 02f8028b2b6..b4d5746e208 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);