X-Git-Url: https://git.donarmstrong.com/?p=deb_pkgs%2Flibhtml-calendarmonth-perl.git;a=blobdiff_plain;f=t%2F02_timelocal.t;h=c952aa713ae83b030082bfc1fadc8b00c52016d9;hp=bff1ea0f32d0121f27f3b8b30ac3ae124f361e45;hb=627a8e2fb05a744a8381c58bf5fff6492a1cff02;hpb=71f544d6e70002cf5ddbadbb7a596bec38a69c9b diff --git a/t/02_timelocal.t b/t/02_timelocal.t index bff1ea0..c952aa7 100755 --- a/t/02_timelocal.t +++ b/t/02_timelocal.t @@ -1,17 +1,16 @@ #!/usr/bin/perl use strict; - -my($test_count, $method); -BEGIN { $test_count = 17 ; $method = 'Time::Local' } - -use Test::More tests => $test_count; - use FindBin; use lib $FindBin::RealBin; use testload; +my($test_count, $method); +BEGIN { $test_count = case_count() + 2 ; $method = 'Time::Local' } + +use Test::More tests => $test_count; + SKIP: { eval "use $method"; skip("$method not installed", $test_count) if $@;