summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund2021-09-30 01:02:32 +0000
committerAndres Freund2021-10-01 22:30:16 +0000
commit795862c280c5949bafcd8c44543d887fd32b590a (patch)
treea3f2dad153c07de1999d0b1ed4386c513e993c65
parentc6bc655ee2ef09449da7ff688a8be19a13db5c4a (diff)
Reference test binary using TESTDIR in 001_libpq_pipeline.pl.
The previous approach didn't really work on windows, due to the PATH separator being ';' not ':'. Instead of making the PATH change more complicated, reference the binary using the TESTDIR environment. Reported-By: Andres Freund <[email protected]> Suggested-By: Andrew Dunstan <[email protected]> Discussion: https://postgr.es/m/[email protected] Backpatch: 14-, where the test was introduced.
-rw-r--r--src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl b/src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl
index 49f211c8270..6721edfa719 100644
--- a/src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl
+++ b/src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl
@@ -14,9 +14,9 @@ $node->init;
$node->start;
my $numrows = 700;
-$ENV{PATH} = "$ENV{TESTDIR}:$ENV{PATH}";
+my $libpq_pipeline = "$ENV{TESTDIR}/libpq_pipeline";
-my ($out, $err) = run_command([ 'libpq_pipeline', 'tests' ]);
+my ($out, $err) = run_command([ $libpq_pipeline, 'tests' ]);
die "oops: $err" unless $err eq '';
my @tests = split(/\s+/, $out);
@@ -39,8 +39,8 @@ for my $testname (@tests)
# Execute the test
$node->command_ok(
[
- 'libpq_pipeline', @extraargs,
- $testname, $node->connstr('postgres')
+ $libpq_pipeline, @extraargs,
+ $testname, $node->connstr('postgres')
],
"libpq_pipeline $testname");