From a717e5c771610cf8607f2423ab3ab6b5d30f44ea Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 27 May 2021 16:40:52 +0200 Subject: [PATCH] Fix vpath build in libpq_pipeline test The path needs to be set to refer to the build directory, not the current directory, because that's actually the source directory at that point. fix for 6abc8c2596dbfcb24f9b4d954a1465b8015118c3 --- src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl | 3 +-- 1 file changed, 1 insertion(+), 2 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 8fd6cd45e76..2bc0e6c2236 100644 --- a/src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl +++ b/src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl @@ -8,14 +8,13 @@ use Config; use PostgresNode; use TestLib; use Test::More; -use Cwd; my $node = get_new_node('main'); $node->init; $node->start; my $numrows = 700; -$ENV{PATH} = "$ENV{PATH}:" . getcwd(); +$ENV{PATH} = "$ENV{TESTDIR}:$ENV{PATH}"; my ($out, $err) = run_command([ 'libpq_pipeline', 'tests' ]); die "oops: $err" unless $err eq '';