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

Comparing AnyEvent/t/66_ioasync_02_signals.t (file contents):
Revision 1.4 by root, Mon Jul 20 22:39:57 2009 UTC vs.
Revision 1.11 by root, Tue Jul 30 23:14:33 2013 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::IOAsync;1} or ((print qq{1..0 # SKIP AnyEvent::Impl::IOAsync not loadable}), exit 0) } use IO::Async::Loop; AnyEvent::Impl::IOAsync::set_loop new IO::Async::Loop; 11
12 BEGIN { $^W = 0 }
13 BEGIN { $ENV{PERL_ANYEVENT_LOOP_TESTS} or ((print qq{1..0 # SKIP PERL_ANYEVENT_LOOP_TESTS not true\n}), exit 0) }
14 BEGIN { eval q{use AnyEvent::Impl::IOAsync;1} or ((print qq{1..0 # SKIP AnyEvent::Impl::IOAsync not loadable\n}), exit 0) }
15
16
3 17
4$| = 1; print "1..5\n"; 18$| = 1; print "1..5\n";
5 19
6print "ok 1\n"; 20print "ok 1\n";
7 21
19 $cv->broadcast; 33 $cv->broadcast;
20}); 34});
21 35
22print "ok 2\n"; 36print "ok 2\n";
23kill 'INT', $$; 37kill 'INT', $$;
24$cv->wait; 38$cv->recv;
25undef $error; 39undef $error;
26 40
27print "ok 4\n"; 41print "ok 4\n";
28 42
29undef $sw; 43undef $sw;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines