Revision: | 1.6 |
Committed: | Sat Mar 22 23:55:22 2008 UTC (16 years, 3 months ago) by root |
Content type: | application/x-troff |
Branch: | MAIN |
CVS Tags: | rel-3_31, rel-3_33, rel-3_4, rel-3_3, rel-3_2, rel-3_44, rel-3_41, rel-3_42, rel-3_43, rel-3_48, rel-3_431 |
Changes since 1.5: | +2 -2 lines |
Log Message: | *** empty log message *** |
# | User | Rev | Content |
---|---|---|---|
1 | root | 1.2 | BEGIN { $| = 1; print "1..6\n"; } |
2 | root | 1.1 | |
3 | no warnings; | ||
4 | use strict; | ||
5 | root | 1.3 | use Socket; |
6 | root | 1.1 | |
7 | use EV; | ||
8 | |||
9 | root | 1.2 | for my $i (3..5) { |
10 | root | 1.6 | EV::once undef, 0, $i * 0.4, sub { |
11 | root | 1.1 | print $_[0] == EV::TIMEOUT ? "" : "not ", "ok $i\n"; |
12 | }; | ||
13 | } | ||
14 | |||
15 | root | 1.3 | socketpair my $s1, my $s2, AF_UNIX, SOCK_STREAM, PF_UNSPEC; |
16 | |||
17 | root | 1.6 | EV::once $s1, EV::WRITE, 0.8, sub { |
18 | root | 1.4 | print $_[0] & EV::WRITE ? "" : "not ", "ok 2\n"; |
19 | root | 1.1 | }; |
20 | |||
21 | root | 1.2 | print "ok 1\n"; |
22 | root | 1.1 | EV::loop; |
23 | root | 1.2 | print "ok 6\n"; |