Skip to content

Commit

Permalink
loop controls do not exit the REPL
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Sep 11, 2016
1 parent 0aea0c8 commit 30b20c3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion S19-command-line/repl.t
Expand Up @@ -4,7 +4,7 @@ use lib <t/spec/packages>;
use Test;
use Test::Util;

plan 11;
plan 12;

# Sanity check that the repl is working at all.
my $cmd = $*DISTRO.is-win
Expand Down Expand Up @@ -114,3 +114,12 @@ is shell($cmd).exitcode, 42, 'exit(42) in executed REPL got run';
:out({ not $^o.contains: '[Int][Int]' }),
'no bizzare types returned from redeclared "returns an `of` Array" sub';
}

# RT #127631
{

is_run_repl join("\n", |<last next redo>, 'say "rt127631-pass"', ''),
:err(''),
:out(/'rt127631-pass'/),
'loop controls do not exit the REPL';
}

0 comments on commit 30b20c3

Please sign in to comment.