Skip to content

Commit

Permalink
Stresstest Proc::Async.Supply
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Oct 12, 2017
1 parent c9d52ee commit e821843
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion S17-procasync/stress.t
Expand Up @@ -4,7 +4,7 @@ use lib <t/spec/packages/>;
use Test;
use Test::Util;

plan 22;
plan 23;

# RT #125515
{
Expand Down Expand Up @@ -61,3 +61,22 @@ for 1..10 {
is_run $code, { status => 0 },
'No hang with await start { await $proc-promise } construct ' ~ "($_)";
}

# We need something that's pretty fast to run; trying to use $*EXECUTABLE instead failed
# to repro the bug this is covering (bug present in 2017 commit ce12e480316
# RT #131763
if run :!out, :!err, «echo test» {
doesn't-hang
for ^100 {
my $proc = Proc::Async.new: «echo test»;
react {
whenever $proc { }
whenever $proc.start { }
}
}
print 'pass';
, :5wait, :out<pass>, ".Supply on multiple Proc::Async's does not deadlock";
}
else {
skip 'Need `echo` for this test'
}

0 comments on commit e821843

Please sign in to comment.