]> git.vpit.fr Git - perl/modules/Linux-SysInfo.git/blob - t/20-extended.t
c54751e2c4c8f4d104965c100185725a38298c7f
[perl/modules/Linux-SysInfo.git] / t / 20-extended.t
1 #!perl -T
2
3 use Test::More tests => 4;
4
5 use Linux::SysInfo qw/sysinfo LS_HAS_EXTENDED/;
6
7 SKIP:
8 {
9  skip 'Your kernel does not support extended sysinfo fields', 4 unless LS_HAS_EXTENDED;
10
11  my $si = sysinfo;
12  ok(defined $si);
13
14  ok(exists $si->{$_}) for qw/totalhigh freehigh mem_unit/;
15 }