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

Comparing AnyEvent/t/65_event_02_signals.t (file contents):
Revision 1.3 by root, Mon Jul 20 22:39:57 2009 UTC vs.
Revision 1.6 by root, Tue Aug 2 20:02:46 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;
2BEGIN { eval q{use AnyEvent::Impl::Event;1} or ((print qq{1..0 # SKIP AnyEvent::Impl::Event not loadable}), exit 0) } 11BEGIN { eval q{use AnyEvent::Impl::Event;1} or ((print qq{1..0 # SKIP AnyEvent::Impl::Event not loadable
12}), exit 0) }
3 13
4$| = 1; print "1..5\n"; 14$| = 1; print "1..5\n";
5 15
6print "ok 1\n"; 16print "ok 1\n";
7 17
19 $cv->broadcast; 29 $cv->broadcast;
20}); 30});
21 31
22print "ok 2\n"; 32print "ok 2\n";
23kill 'INT', $$; 33kill 'INT', $$;
24$cv->wait; 34$cv->recv;
25undef $error; 35undef $error;
26 36
27print "ok 4\n"; 37print "ok 4\n";
28 38
29undef $sw; 39undef $sw;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines