summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aa4ab1b)
raw | patch | inline | side by side (parent: aa4ab1b)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Sat, 17 May 2003 17:59:13 +0000 (17:59 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Sat, 17 May 2003 17:59:13 +0000 (17:59 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@520 f882894a-f735-0410-b71e-b25c423dba1c
plugins/t/check_load.t | patch | blob | history |
diff --git a/plugins/t/check_load.t b/plugins/t/check_load.t
index ac14620f5a56f86864ba18797f7a60aafb110681..fce168fc81fdb708152118e83b610e1fd85a0c3d 100644 (file)
--- a/plugins/t/check_load.t
+++ b/plugins/t/check_load.t
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);