ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/t/00_load.t
(Generate patch)

Comparing EV/t/00_load.t (file contents):
Revision 1.1 by root, Fri Oct 26 09:19:48 2007 UTC vs.
Revision 1.13 by root, Thu Oct 21 15:13:42 2010 UTC

1BEGIN { $| = 1; print "1..1\n"; } 1BEGIN { $| = 1; print "1..5\n"; }
2END {print "not ok 1\n" unless $loaded;} 2
3use Libevent; 3BEGIN {
4$loaded = 1; 4 $^W = 0; # work around some bugs in perl
5
6 print eval { require EV } ? "" : "not ", "ok 1 # $@\n";
7 print eval { require EV::MakeMaker } ? "" : "not ", "ok 2 # $@\n";
8}
9
10my $w = EV::idle sub { print "not ok 3\n"; $_[0]->stop };
11$w->feed_event (EV::CUSTOM);
12$w->stop;
13EV::run;
5print "ok 1\n"; 14print "ok 3\n";
15
16my $w = EV::idle sub { print "ok 4\n"; $_[0]->stop };
17$w->feed_event (EV::CUSTOM);
18$w->clear_pending;
19EV::loop;
20print "ok 5\n";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines