X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F20-extended.t;h=c8a270e6711320095c6f1ced0664cca6fa8e925d;hb=01cae1ae25699e5619d0daa4670f0c8930b433bf;hp=c54751e2c4c8f4d104965c100185725a38298c7f;hpb=0010ec75da61adecfb655901837909d90404c94c;p=perl%2Fmodules%2FLinux-SysInfo.git diff --git a/t/20-extended.t b/t/20-extended.t index c54751e..c8a270e 100644 --- a/t/20-extended.t +++ b/t/20-extended.t @@ -1,15 +1,21 @@ #!perl -T -use Test::More tests => 4; +use strict; +use warnings; + +use Test::More; use Linux::SysInfo qw/sysinfo LS_HAS_EXTENDED/; -SKIP: -{ - skip 'Your kernel does not support extended sysinfo fields', 4 unless LS_HAS_EXTENDED; +unless (LS_HAS_EXTENDED) { + plan skip_all => 'your kernel does not support extended sysinfo fields'; +} else { + plan tests => 4 * 5; - my $si = sysinfo; - ok(defined $si); + for (1 .. 5) { + my $si = sysinfo; + ok(defined $si); - ok(exists $si->{$_}) for qw/totalhigh freehigh mem_unit/; + ok(exists $si->{$_}) for qw/totalhigh freehigh mem_unit/; + } }