Skip to content

Commit

Permalink
Explicitly unset REPL env vars for the test
Browse files Browse the repository at this point in the history
In case testing environment has them set for some reason.
  • Loading branch information
zoffixznet committed Mar 4, 2018
1 parent 89f33bb commit e9cff79
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions t/02-rakudo/repl.t
Expand Up @@ -15,14 +15,17 @@ my $*REPL-SCRUBBER = -> $_ is copy {
$_
}

subtest 'sanity check; load without tweaking line editor' => {
plan 3;
my $p := run $*EXECUTABLE, '--repl-mode=interactive', :in, :out, :err;
$p.in.say: '133742.flip.say';
$p.in.close;
like $p.out.slurp(:close), /247331/, 'result of code is on STDOUT';
is $p.err.slurp(:close).chars, 0, 'no STDERR output';
is $p.exitcode, 0, 'successful exit code';
{
(temp %*ENV)<RAKUDO_ERROR_COLOR RAKUDO_LINE_EDITOR>:delete;
subtest 'sanity check; load without tweaking line editor' => {
plan 3;
my $p := run $*EXECUTABLE, '--repl-mode=interactive', :in, :out, :err;
$p.in.say: '133742.flip.say';
$p.in.close;
like $p.out.slurp(:close), /247331/, 'result of code is on STDOUT';
is $p.err.slurp(:close).chars, 0, 'no STDERR output';
is $p.exitcode, 0, 'successful exit code';
}
}

# RT #123187
Expand Down

0 comments on commit e9cff79

Please sign in to comment.