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.6 by root, Sat Jul 18 00:05:29 2009 UTC vs.
Revision 1.9 by root, Tue Aug 2 20:02:45 2011 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines