Skip to content

Commit 7cd68b1

Browse files
committed
close STDIN in rm test because there are prompts
1 parent bf7a3b8 commit 7cd68b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

t/rm/run.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ subtest 'table' => sub {
167167
my $error = '';
168168
open my $error_fh, '>:utf8', \$error;
169169

170+
# XXX: Closing STDIN means we are ignoring some branches
171+
close *STDIN;
170172
$class->run( args => \@run_args, error_fh => $error_fh );
171173
is $EXIT, $row->[EXIT], "Exit code is " . $row->[EXIT];
172174

0 commit comments

Comments
 (0)