ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/t/02_signals.t
(Generate patch)

Comparing AnyEvent/t/02_signals.t (file contents):
Revision 1.5 by root, Fri May 23 16:36:02 2008 UTC vs.
Revision 1.9 by root, Tue Aug 2 20:02:45 2011 UTC

1$|=1;
2BEGIN { 1BEGIN {
3 print "1..5\n"; 2 unless (exists $SIG{USR1}) {
3 print <<EOF;
41..0 # SKIP Broken perl detected, skipping tests.
5EOF
6 exit 0;
7 }
4} 8}
5 9
6use AnyEvent; 10use AnyEvent;
7use AnyEvent::Impl::Perl; 11BEGIN { require AnyEvent::Impl::Perl unless $ENV{PERL_ANYEVENT_MODEL} }
12
13$| = 1; print "1..5\n";
8 14
9print "ok 1\n"; 15print "ok 1\n";
10 16
11my $cv = AnyEvent->condvar; 17my $cv = AnyEvent->condvar;
12 18
22 $cv->broadcast; 28 $cv->broadcast;
23}); 29});
24 30
25print "ok 2\n"; 31print "ok 2\n";
26kill 'INT', $$; 32kill 'INT', $$;
27$cv->wait; 33$cv->recv;
28undef $error; 34undef $error;
29 35
30print "ok 4\n"; 36print "ok 4\n";
31 37
32undef $sw; 38undef $sw;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines