From: Brandon L Black Date: Fri, 10 Nov 2006 00:05:00 +0000 (+0000) Subject: skip the inf loop test on platforms with no SIGALRM X-Git-Tag: 0.06~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e3b65d6443ff39f270d5be1a0bdcf9c68c1d5aba;p=gitmo%2FAlgorithm-C3.git skip the inf loop test on platforms with no SIGALRM --- diff --git a/t/011_infinite_loop.t b/t/011_infinite_loop.t index 7589981..b291015 100644 --- a/t/011_infinite_loop.t +++ b/t/011_infinite_loop.t @@ -3,11 +3,11 @@ use strict; use warnings; -use Test::More tests => 6; +use Test::More; +use Algorithm::C3; # we already did use_ok 10 times by now.. -BEGIN { - use_ok('Algorithm::C3'); -} +plan skip_all => "Your system has no SIGALRM" if !exists $SIG{ALRM}; +plan tests => 5; =pod @@ -109,5 +109,4 @@ foreach my $loopy (@loopies) { else { ok(0, "Infinite loop apparently succeeded???"); } - }