Skip to content

Commit b8f17e1

Browse files
committed
Test to cover a couple of Supply/interval bugs.
1 parent c61f7f1 commit b8f17e1

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

S17-supply/syntax.t

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use v6;
22
use Test;
33

4-
plan 67;
4+
plan 68;
55

66
{
77
my $s = supply {
@@ -502,4 +502,15 @@ lives-ok {
502502
}
503503
}, 'No react guts crash in case that once spat out two done messages either';
504504

505+
lives-ok {
506+
my $s = supply { whenever Supply.interval(0.001) { done } }
507+
await do for ^4 {
508+
start {
509+
for ^500 {
510+
react { whenever $s { } }
511+
}
512+
}
513+
}
514+
}, 'No races/crashes around interval that emits done (used to SEGV and various errors)';
515+
505516
# vim: ft=perl6 expandtab sw=4

0 commit comments

Comments
 (0)