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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy