Skip to content

Commit 3a8ec6e

Browse files
committed
add test for RT #125796, IO::Pipe.lines
1 parent 9717b4f commit 3a8ec6e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

S32-io/pipe.t

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use v6;
22
use Test;
33

4-
plan 13;
4+
plan 14;
55

66
shell_captures_out_ok '1', '', 0, 'Child succeeds but does not print anything';
77
shell_captures_out_ok 'say 42', '42', 0, 'Child succeeds and prints something';
@@ -47,3 +47,10 @@ sub shell_captures_out_ok($code, $out, $exitcode, $desc) {
4747
is $sh2.out.slurp-rest, "baz bar foo\n", 'Can capture stdout and stderr, and chain stdin';
4848
is $sh2.err.slurp-rest, "3\n", 'Can capture stdout and stderr, and chain stdin';
4949
}
50+
51+
# RT #125796
52+
{
53+
my $p = shell "$*EXECUTABLE -e \"say 42 for ^10\"", :out;
54+
my @lines = $p.out.lines;
55+
ok all(@lines) eq '42', 'There is no empty line due to no EOF for pipes';
56+
}

0 commit comments

Comments
 (0)