[Nagiosplug-devel] patch for check_disk.t
Mathew Ericson
mathew_ericson at agilent.com
Thu May 15 16:58:08 CEST 2003
Dear nagiosplug-devel,
This patch fixes tests 2,4,6 failing in check_disk.t on hpux and linux -
how do I go about getting this checked-in?
--- check_disk.t.orig 2003-05-16 10:12:35.000000000 +1000
+++ check_disk.t 2003-05-16 10:13:04.000000000 +1000
@@ -13,19 +13,19 @@
$str = `$cmd`;
$t += ok $?>>8,0;
print "Test was: $cmd\n" if ($?);
-$t += ok $str, '/^(Disk ok - +[\.0-9]+|DISK OK - )/';
+$t += ok $str, '/^(Disk ok - +[\.0-9]+|DISK OK)/';
$cmd = "./check_disk -w 0 -c 0 /";
$str = `$cmd`;
$t += ok $?>>8,0;
print "Test was: $cmd\n" if ($?);
-$t += ok $str, '/^(Disk ok - +[\.0-9]+|DISK OK - )/';
+$t += ok $str, '/^(Disk ok - +[\.0-9]+|DISK OK)/';
$cmd = "./check_disk 0 0 /";
$str = `$cmd`;
$t += ok $?>>8,2;
print "Test was: $cmd\n" unless ($?);
-$t += ok $str, '/^(Only +[\.0-9]+|DISK CRITICAL - )/';
+$t += ok $str, '/^(Only +[\.0-9]+|DISK CRITICAL)/';
exit(0) if defined($Test::Harness::VERSION);
exit($tests - $t);
--
Mathew Ericson
CC/Unix System Administrator
Agilent Technologies, Inc.
613 9210 5956 Tel
More information about the Devel
mailing list