… | |
… | |
19 | print 0 == $_[0]->attr ? "" : "not ", "ok 10\n"; |
19 | print 0 == $_[0]->attr ? "" : "not ", "ok 10\n"; |
20 | print 0 == ($_[0]->attr)[3] ? "" : "not ", "ok 11\n"; |
20 | print 0 == ($_[0]->attr)[3] ? "" : "not ", "ok 11\n"; |
21 | |
21 | |
22 | print 0 == $_[0]->stat ? "" : "not ", "ok 12\n"; |
22 | print 0 == $_[0]->stat ? "" : "not ", "ok 12\n"; |
23 | print 0 == ($_[0]->stat)[3] ? "" : "not ", "ok 13\n"; |
23 | print 0 == ($_[0]->stat)[3] ? "" : "not ", "ok 13\n"; |
24 | EV::unloop; |
24 | EV::break; |
25 | }; |
25 | }; |
26 | |
26 | |
27 | my $t = EV::timer 0.2, 0, sub { |
27 | my $t = EV::timer 0.2, 0, sub { |
28 | print "ok 2\n"; |
28 | print "ok 2\n"; |
29 | EV::unloop; |
29 | EV::break; |
30 | }; |
30 | }; |
31 | |
31 | |
32 | print "ok 1\n"; |
32 | print $w->stat ? "" : "not ", "ok 1\n"; |
33 | EV::loop; |
33 | EV::run; |
34 | print "ok 3\n"; |
34 | print "ok 3\n"; |
35 | |
35 | |
36 | # delete the file, as windows will not update any stats otherwise :( |
36 | # delete the file, as windows will not update any stats otherwise :( |
37 | undef $fh; |
37 | undef $fh; |
38 | |
38 | |
39 | my $t = EV::timer 0.2, 0, sub { |
39 | my $t = EV::timer 0.2, 0, sub { |
40 | print "no ok 5\n"; |
40 | print "no ok 5\n"; |
41 | EV::unloop; |
41 | EV::break; |
42 | }; |
42 | }; |
43 | |
43 | |
44 | print "ok 4\n"; |
44 | print "ok 4\n"; |
45 | EV::loop; |
45 | EV::run; |
46 | print "ok 14\n"; |
46 | print "ok 14\n"; |
47 | |
47 | |