ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/t/09_brandon.t
Revision: 1.6
Committed: Thu Oct 21 15:13:43 2010 UTC (13 years, 8 months ago) by root
Content type: application/x-troff
Branch: MAIN
CVS Tags: EV-rel-4_28, EV-rel-4_29, EV-rel-4_26, EV-rel-4_27, EV-rel-4_25, EV-rel-4_22, EV-rel-4_20, EV-rel-4_21, rel-4_01, rel-4_00, rel-4_03, rel-4_02, EV-rel-4_31, EV-rel-4_30, EV-rel-4_33, EV-rel-4_32, EV-rel-4_34, EV_rel-4_11, EV_rel-4_10, EV-rel-4_15, EV_rel-4_17, EV_rel-4_16, EV-rel-4_18, HEAD
Changes since 1.5: +14 -14 lines
Log Message:
port testsuite

File Contents

# User Rev Content
1 root 1.3 BEGIN {
2     if (exists $ENV{AUTOMATED_TESTING}) {
3     print "1..0 # Skipped: Too many broken cpan tester setups.\n";
4     exit;
5     }
6     }
7 root 1.1 BEGIN { $| = 1; print "1..12\n"; }
8    
9     # a surprisingly effective test by brandon black
10    
11     no warnings;
12     use strict;
13    
14     use EV;
15    
16     {
17 root 1.6 my $a = EV::timer 1.6, 0, sub { print "not ok 2\n"; EV::break };
18     my $b = EV::timer 0.3, 0, sub { print "ok 2\n"; EV::break };
19 root 1.1
20     print "ok 1\n";
21 root 1.6 EV::run;
22 root 1.1 print "ok 3\n";
23     }
24    
25     {
26 root 1.6 my $b = EV::timer 0.3, 0, sub { print "ok 5\n"; EV::break };
27     my $a = EV::timer 1.6, 0, sub { print "not ok 5\n"; EV::break };
28 root 1.1
29     print "ok 4\n";
30 root 1.6 EV::run;
31 root 1.1 print "ok 6\n";
32     }
33    
34     {
35 root 1.6 my $a = EV::timer 1.9, 0, sub { print "not ok 8\n"; EV::break };
36     my $b = EV::timer 1.6, 0, sub { print "not ok 8\n"; EV::break };
37     my $c = EV::timer 0.3, 0, sub { print "ok 8\n"; EV::break };
38 root 1.1
39     print "ok 7\n";
40 root 1.6 EV::run;
41 root 1.1 print "ok 9\n";
42     }
43     {
44    
45 root 1.6 my $a = EV::timer 1.6, 0, sub { print "not ok 11\n"; EV::break };
46     my $b = EV::timer 0.3, 0, sub { print "ok 11\n"; EV::break };
47     my $c = EV::timer 1.9, 0, sub { print "not ok 11\n"; EV::break };
48 root 1.1
49     print "ok 10\n";
50 root 1.6 EV::run;
51 root 1.1 print "ok 12\n";
52     }