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

Comparing EV/t/04_stat.t (file contents):
Revision 1.3 by root, Wed Nov 28 17:32:24 2007 UTC vs.
Revision 1.5 by root, Thu Oct 21 15:13:42 2010 UTC

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
27my $t = EV::timer 0.2, 0, sub { 27my $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
32print "ok 1\n"; 32print $w->stat ? "" : "not ", "ok 1\n";
33EV::loop; 33EV::run;
34print "ok 3\n"; 34print "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 :(
37undef $fh; 37undef $fh;
38 38
39my $t = EV::timer 0.2, 0, sub { 39my $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
44print "ok 4\n"; 44print "ok 4\n";
45EV::loop; 45EV::run;
46print "ok 14\n"; 46print "ok 14\n";
47 47

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines