diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2014-07-23 21:41:59 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2014-07-23 22:06:56 -0400 |
commit | 455044d55a89d16d888f289aeaf1229a04a04b9f (patch) | |
tree | 80a2af729979f0f3075aaf12d42b92d43b67a754 /src/test/perl/TestLib.pm | |
parent | 4fd9e6ffdd9aae51a935c255cbf7691c369ded1b (diff) | |
download | postgresql-455044d55a89d16d888f289aeaf1229a04a04b9f.tar.gz postgresql-455044d55a89d16d888f289aeaf1229a04a04b9f.zip |
Fix TAP installcheck tests when current directory name contains spaces
This fixes the installcheck part. The check part has additional
problems that will be addressed in a separate commit.
Diffstat (limited to 'src/test/perl/TestLib.pm')
-rw-r--r-- | src/test/perl/TestLib.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/perl/TestLib.pm b/src/test/perl/TestLib.pm index e6a8a4ebe35..899844baf73 100644 --- a/src/test/perl/TestLib.pm +++ b/src/test/perl/TestLib.pm @@ -88,7 +88,7 @@ sub start_test_server my $tempdir_short = tempdir_short; - system "initdb -D $tempdir/pgdata -A trust -N >/dev/null"; + system "initdb -D '$tempdir'/pgdata -A trust -N >/dev/null"; $ret = system 'pg_ctl', '-D', "$tempdir/pgdata", '-s', '-w', '-l', "$tempdir/logfile", '-o', "--fsync=off -k $tempdir_short --listen-addresses='' --log-statement=all", @@ -223,7 +223,7 @@ sub issues_sql_like truncate $test_server_logfile, 0; my $result = run $cmd, '>', \$stdout, '2>', \$stderr; ok($result, "@$cmd exit code 0"); - my $log = `cat $test_server_logfile`; + my $log = `cat '$test_server_logfile'`; like($log, $expected_sql, "$test_name: SQL found in server log"); }; } |