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.2 by root, Thu Apr 23 22:44:30 2009 UTC vs.
Revision 1.8 by root, Tue Aug 2 20:02:47 2011 UTC

1$|=1;
2$^W=0;
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::POE; 11BEGIN { eval q{use AnyEvent::Impl::POE;1} or ((print qq{1..0 # SKIP AnyEvent::Impl::POE not loadable
12}), exit 0) } $^W = 0;
13
14$| = 1; print "1..5\n";
9 15
10print "ok 1\n"; 16print "ok 1\n";
11 17
12my $cv = AnyEvent->condvar; 18my $cv = AnyEvent->condvar;
13 19
23 $cv->broadcast; 29 $cv->broadcast;
24}); 30});
25 31
26print "ok 2\n"; 32print "ok 2\n";
27kill 'INT', $$; 33kill 'INT', $$;
28$cv->wait; 34$cv->recv;
29undef $error; 35undef $error;
30 36
31print "ok 4\n"; 37print "ok 4\n";
32 38
33undef $sw; 39undef $sw;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines