--- AnyEvent/t/09_multi.t 2011/08/02 22:06:08 1.1 +++ AnyEvent/t/09_multi.t 2011/08/02 22:07:16 1.2 @@ -28,8 +28,8 @@ my $wt = AE::timer 0.1, 0, $cv; my $s = 0; - $cv->begin; my $wa = AE::io $a, 0, sub { $cv->end; $s |= 1 }; - $cv->begin; my $wb = AE::io $a, 0, sub { $cv->end; $s |= 2 }; + my $wa = AE::io $a, 0, sub { $cv->end; $s |= 1 }; + my $wb = AE::io $a, 0, sub { $cv->end; $s |= 2 }; $cv->recv; @@ -41,6 +41,8 @@ $wt = AE::timer 0.1, 0, $cv; $s = 0; + $cv->begin; + $cv->begin; $cv->recv; print $s == 3 ? "" : "not ", "ok 4 # $s\n";