]> git.vpit.fr Git - perl/modules/Linux-SysInfo.git/blobdiff - t/20-extended.t
Importing Linux-SysInfo-0.05.tar.gz
[perl/modules/Linux-SysInfo.git] / t / 20-extended.t
index 28806a4884a806e62a3995f2d5a8378b6631b307..892a596260d7fdbdce172d34cc0575c1418742e7 100644 (file)
@@ -7,10 +7,12 @@ use Linux::SysInfo qw/sysinfo LS_HAS_EXTENDED/;
 unless (LS_HAS_EXTENDED) {
  plan skip_all => 'your kernel does not support extended sysinfo fields';
 } else {
- plan tests => 4;
+ 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/;
+ }
 }