Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+3-1
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)