aboutsummaryrefslogtreecommitdiff
path: root/plugins/t
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2003-05-17 17:59:13 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2003-05-17 17:59:13 +0000
commitf242c3acd9408719d3687aaddcba87d5b7475be1 (patch)
tree16667ad8b76afc792f8952af0bf065a6d5fc5d9f /plugins/t
parentaa4ab1b799e5b3287406441427860d280155aed2 (diff)
downloadmonitoring-plugins-f242c3acd9408719d3687aaddcba87d5b7475be1.tar.gz
Fixed tests (Mathew Ericson - 738607)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@520 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/t')
-rw-r--r--plugins/t/check_load.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/t/check_load.t b/plugins/t/check_load.t
index ac14620f..fce168fc 100644
--- a/plugins/t/check_load.t
+++ b/plugins/t/check_load.t
@@ -11,17 +11,17 @@ my $cmd;
my $str;
my $t;
-$cmd = "./check_load 100 100 100 100 100 100";
+$cmd = "./check_load -w 100,100,100 -c 100,100,100";
$str = `$cmd`;
$t += ok $?>>8,0;
print "Test was: $cmd\n" if ($?);
-$t += ok $str, '/^load average: +[\.0-9]+, +[\.0-9]+, +[\.0-9]+$/';
+$t += ok $str, '/^OK - load average: [0-9]\.?[0-9]+, [0-9]\.?[0-9]+, [0-9]\.?[0-9]+$/';
-$cmd = "./check_load 0 0 0 0 0 0";
+$cmd = "./check_load -w 0,0,0 -c 0,0,0";
$str = `$cmd`;
$t += ok $?>>8,2;
print "Test was: $cmd\n" unless ($?);
-$t += ok $str, '/^load average: +[\.0-9]+, +[\.0-9]+, +[\.0-9]+ CRITICAL$/';
+$t += ok $str, '/^CRITICAL - load average: [0-9]\.?[0-9]+, [0-9]\.?[0-9]+, [0-9]\.?[0-9]+$/';
exit(0) if defined($Test::Harness::VERSION);
exit($tests - $t);