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

Comparing AnyEvent/t/64_glib_02_signals.t (file contents):
Revision 1.1 by root, Thu Oct 2 08:43:57 2008 UTC vs.
Revision 1.8 by root, Tue Jul 30 23:14:33 2013 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::Glib; 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::Glib;1} or ((print qq{1..0 # SKIP AnyEvent::Impl::Glib not loadable\n}), exit 0) }
15
16
17
18$| = 1; print "1..5\n";
8 19
9print "ok 1\n"; 20print "ok 1\n";
10 21
11my $cv = AnyEvent->condvar; 22my $cv = AnyEvent->condvar;
12 23
22 $cv->broadcast; 33 $cv->broadcast;
23}); 34});
24 35
25print "ok 2\n"; 36print "ok 2\n";
26kill 'INT', $$; 37kill 'INT', $$;
27$cv->wait; 38$cv->recv;
28undef $error; 39undef $error;
29 40
30print "ok 4\n"; 41print "ok 4\n";
31 42
32undef $sw; 43undef $sw;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines