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

Comparing AnyEvent/t/68_poe_02_signals.t (file contents):
Revision 1.3 by root, Thu Jul 9 22:49:18 2009 UTC vs.
Revision 1.9 by root, Fri Aug 12 18:41:30 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::POE; $^W = 0; 11
12 BEGIN { $ENV{PERL_ANYEVENT_LOOP_TESTS} or ((print qq{1..0 # SKIP PERL_ANYEVENT_LOOP_TESTS not true\n}), exit 0) }
13 BEGIN { eval q{use AnyEvent::Impl::POE;1} or ((print qq{1..0 # SKIP AnyEvent::Impl::POE not loadable\n}), exit 0) }
14 $^W = 0;
15
16
17$| = 1; print "1..5\n";
8 18
9print "ok 1\n"; 19print "ok 1\n";
10 20
11my $cv = AnyEvent->condvar; 21my $cv = AnyEvent->condvar;
12 22
22 $cv->broadcast; 32 $cv->broadcast;
23}); 33});
24 34
25print "ok 2\n"; 35print "ok 2\n";
26kill 'INT', $$; 36kill 'INT', $$;
27$cv->wait; 37$cv->recv;
28undef $error; 38undef $error;
29 39
30print "ok 4\n"; 40print "ok 4\n";
31 41
32undef $sw; 42undef $sw;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines