Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit795862c

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 separatorbeing ';' 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.deBackpatch: 14-, where the test was introduced.
1 parentc6bc655 commit795862c

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$erreq'';
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)

[8]ページ先頭

©2009-2025 Movatter.jp