--- Coro/t/01_process.t 2006/11/30 18:21:14 1.6 +++ Coro/t/01_process.t 2007/01/04 20:14:20 1.8 @@ -1,5 +1,5 @@ $|=1; -print "1..6\n"; +print "1..9\n"; use Coro; @@ -14,6 +14,7 @@ my $c1 = async { print "ok 5\n"; cede; + print "not ok 8\n";#d# }; print $c1->ready ? "not " : "", "ok 4\n"; @@ -22,3 +23,15 @@ print "ok 6\n"; +$c1->on_destroy (sub { + print "ok 7\n"; +}); + +$c1->cancel; + +print "ok 8\n"; + +cede; cede; + +print "ok 9\n"; +