diff options
author | Andres Freund <andres@anarazel.de> | 2021-09-29 18:02:32 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2021-10-01 15:30:31 -0700 |
commit | 0baa33da0fd123aff215c505116dc60bc04dae90 (patch) | |
tree | b9bc1da82c205793db68cb648f58ded53c72348a /src | |
parent | 20047609d39cc4d30d6b266ed3a8b418b3ce5f78 (diff) | |
download | postgresql-0baa33da0fd123aff215c505116dc60bc04dae90.tar.gz postgresql-0baa33da0fd123aff215c505116dc60bc04dae90.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl | 8 |
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 4101ef950ee..bf71eabd067 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"); |