Skip to content

Commit

Permalink
Tests for RT #123204
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Mar 12, 2016
1 parent 524d930 commit f87e7b4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion S17-promise/start.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 40;
plan 42;

throws-like { await }, Exception, "a bare await should not work";

Expand Down Expand Up @@ -108,3 +108,8 @@ throws-like { await }, Exception, "a bare await should not work";
my $*E = 5;
is foo(), 6, 'Code running in start can see dynamic variables of the start point';
}

# RT #123204: retrowing of exceptions from start:

dies-ok { await start { die 'oh noe' } }, 'await rethrows exceptions';
dies-ok { await start { fail 'oh noe' } }, 'await rethrows failures';

0 comments on commit f87e7b4

Please sign in to comment.