Skip to content

Commit

Permalink
Revert "Temporarily remove three newly added tests"
Browse files Browse the repository at this point in the history
This reverts commit 24ebb03.
  • Loading branch information
usev6 committed Dec 21, 2017
1 parent 78dd9fb commit 8ad3f76
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion t/nqp/100-dispatcher.t
@@ -1,4 +1,4 @@
plan(7);
plan(10);
my $closure;
{
nqp::setdispatcher(100);
Expand Down Expand Up @@ -60,3 +60,22 @@ nqp::setdispatcherfor(400, $wraped2);
$wraped1();
$wraped2();

sub take_or_clear($take) {
my $foo := 100;
if $take {
nqp::takedispatcher('$foo');
} else {
nqp::cleardispatcher();
}
$foo;
}

if nqp::getcomp('nqp').backend.name eq 'jvm' {
nqp::setdispatcherfor(400, &take_or_clear);
is(take_or_clear(1), 400);
nqp::setdispatcherfor(400, &take_or_clear);
is(take_or_clear(0), 100);
is(take_or_clear(1), 100);
} else {
skip('skip broken tests on the jvm', 3);
}

0 comments on commit 8ad3f76

Please sign in to comment.