Content-Length: 285998 | pFad | http://github.com/postgrespro/postgres/commit/90d7f6604b6ed2dcedee2884c3b01541600515cb

83 Minor portability fixes for new TAP script. · postgrespro/postgres@90d7f66 · GitHub
Skip to content

Commit 90d7f66

Browse files
committed
Minor portability fixes for new TAP script.
Satisfy perlcritic, mostly. Per buildfarm.
1 parent 44e44bd commit 90d7f66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bin/psql/t/010_tab_completion.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Test::More;
77
use IPC::Run qw(pump finish timer);
88

9-
if ($ENV{with_readline} ne 'yes')
9+
if (!defined($ENV{with_readline}) || $ENV{with_readline} ne 'yes')
1010
{
1111
plan skip_all => 'readline is not supported by this build';
1212
}
@@ -64,13 +64,15 @@ sub check_completion
6464
ok($okay, $annotation);
6565
# for debugging, log actual output if it didn't match
6666
note 'Actual output was "' . $out . "\"\n" if !$okay;
67+
return;
6768
}
6869

6970
# Clear query buffer to start over
7071
# (won't work if we are inside a string literal!)
7172
sub clear_query
7273
{
7374
check_completion("\\r\n", "postgres=# ", "\\r works");
75+
return;
7476
}
7577

7678
# check basic command completion: SEL<tab> produces SELECT<space>

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/90d7f6604b6ed2dcedee2884c3b01541600515cb

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy