File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ my @endings =
14
14
# # adjusted plan to allow fine grained fudging for rakudo.jvm
15
15
# plan @endings * (1 + 3 * ( (3 * 5) + 6));
16
16
my $ extra_tests_jvm_fudging = 2 * 3 * ( 3 * ( 6 + 2 ) );
17
- plan 7 + @ endings * (1 + 3 * ( 5 + 6 )) + $ extra_tests_jvm_fudging ;
17
+ plan 8 + @ endings * (1 + 3 * ( 5 + 6 )) + $ extra_tests_jvm_fudging ;
18
18
19
19
my $ filename = ' t/spec/S16-io/lines.testing' ;
20
20
my @ text = <zero one two three four >;
@@ -317,4 +317,21 @@ subtest '$limit works right with any combination of args' => {
317
317
}
318
318
}
319
319
}
320
+
321
+ {
322
+ my $ file = make-temp-file : content(" foo\n bar\n ber\n meow\n Perl 6" );
323
+ # we spin up another perl6 and do 1500 x 2 .lines calls; if the handle
324
+ # isn't closed; we can expect some errors to show up in the output
325
+ is_run 「 my $i = 0; my @lines; with 」 ~ $ file . perl ~ 「 {
326
+ use fatal;
327
+ loop {
328
+ last if ++$i > 1500;
329
+ @lines.append: .lines;
330
+ @lines.append: .lines(2);
331
+ }
332
+ }; print "all ok $i"」 ,
333
+ {: err(' ' ), : out(' all ok 1501' ), : 0 status},
334
+ ' heuristic for testing whether handle is closed' ;
335
+ }
336
+
320
337
# vim: ft=perl6
You can’t perform that action at this time.
0 commit comments