Skip to content

Commit 795862c

Browse files
committed
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 <andres@anarazel.de> Suggested-By: Andrew Dunstan <andrew@dunslane.net> Discussion: https://postgr.es/m/20210930214040.odkdd42vknvzifm6@alap3.anarazel.de Backpatch: 14-, where the test was introduced.
1 parent c6bc655 commit 795862c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
$node->start;
1515

1616
my $numrows = 700;
17-
$ENV{PATH} = "$ENV{TESTDIR}:$ENV{PATH}";
17+
my $libpq_pipeline = "$ENV{TESTDIR}/libpq_pipeline";
1818

19-
my ($out, $err) = run_command([ 'libpq_pipeline', 'tests' ]);
19+
my ($out, $err) = run_command([ $libpq_pipeline, 'tests' ]);
2020
die "oops: $err" unless $err eq '';
2121
my @tests = split(/\s+/, $out);
2222

@@ -39,8 +39,8 @@
3939
# Execute the test
4040
$node->command_ok(
4141
[
42-
'libpq_pipeline', @extraargs,
43-
$testname, $node->connstr('postgres')
42+
$libpq_pipeline, @extraargs,
43+
$testname, $node->connstr('postgres')
4444
],
4545
"libpq_pipeline $testname");
4646

0 commit comments

Comments
 (0)