X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=t%2F02_timelocal.t;h=c952aa713ae83b030082bfc1fadc8b00c52016d9;hb=627a8e2fb05a744a8381c58bf5fff6492a1cff02;hp=bff1ea0f32d0121f27f3b8b30ac3ae124f361e45;hpb=50065656489ae7e83457ab2c12b6d174186339d7;p=deb_pkgs%2Flibhtml-calendarmonth-perl.git 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 $@;