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

Comparing AnyEvent/t/69_ev_02_signals.t (file contents):
Revision 1.1 by root, Thu Oct 2 08:43:58 2008 UTC vs.
Revision 1.9 by root, Tue Jul 30 23:14:34 2013 UTC

1$|=1;
2BEGIN { unless (eval "require EV") { print "1..0 # skip because EV isn't installed"; exit } }
3BEGIN { 1BEGIN {
4 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 }
5} 8}
6 9
7use AnyEvent; 10use AnyEvent;
8use AnyEvent::Impl::EV; 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::EV;1} or ((print qq{1..0 # SKIP AnyEvent::Impl::EV not loadable\n}), exit 0) }
15
16
17
18$| = 1; print "1..5\n";
9 19
10print "ok 1\n"; 20print "ok 1\n";
11 21
12my $cv = AnyEvent->condvar; 22my $cv = AnyEvent->condvar;
13 23
23 $cv->broadcast; 33 $cv->broadcast;
24}); 34});
25 35
26print "ok 2\n"; 36print "ok 2\n";
27kill 'INT', $$; 37kill 'INT', $$;
28$cv->wait; 38$cv->recv;
29undef $error; 39undef $error;
30 40
31print "ok 4\n"; 41print "ok 4\n";
32 42
33undef $sw; 43undef $sw;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines