Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test run with something portable.
`true` won't work out on Windows.
  • Loading branch information
jnthn committed Nov 5, 2015
1 parent 3378706 commit a0da155
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S29-os/system.t
Expand Up @@ -50,14 +50,14 @@ ok($res.exitcode != 0, 'shell() exit code is not zero on failure');
my $rt115390;
for 1..100 -> $i {
$rt115390 += $i.perl;
run "true";
run "$*EXECUTABLE", "-v";
1;
}
is $rt115390, 5050, 'no crash with run() in loop; run() in sink context';
$rt115390 = 0;
for 1..100 -> $i {
$rt115390 += $i.perl;
my $var = run "true";
my $var = run "$*EXECUTABLE", "-v";
1;
}
is $rt115390, 5050, 'no crash with run() in loop; run() not in sink context';
Expand Down

0 comments on commit a0da155

Please sign in to comment.