X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fop%2Fgrep.t;h=3e5d7168a0dc17b78398ccea579469c62277a1b8;hb=e081bb54e0eecfb962e7f0cfd84fcbdb2683d54d;hp=4696224c449cb140539161fceb86c95b4bbc90d1;hpb=20c514ece8742b452abf20fe2b2afe915c29bc47;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/op/grep.t b/t/op/grep.t index 4696224..3e5d716 100755 --- a/t/op/grep.t +++ b/t/op/grep.t @@ -4,7 +4,7 @@ # grep() and map() tests # -print "1..37\n"; +print "1..38\n"; $test = 1; @@ -162,3 +162,8 @@ sub ok { undef $gimme; map { gimme } @list; ok($gimme, 'list'); $test++; } +{ + # This shouldn't loop indefinitively. + my @empty = map { while (1) {} } (); + ok("@empty", ''); +}