diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-05-17 17:59:13 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-05-17 17:59:13 +0000 |
commit | b832a277dc687c4db6bb7f989e6f79d1e0e67e72 (patch) | |
tree | 9b5783dd5acba3000dee82dbaa9009ea5c968ba9 | |
parent | e4d0a2d2df48c364abb0b15d97b0f63bd965b800 (diff) | |
download | monitoring-plugins-b832a277dc687c4db6bb7f989e6f79d1e0e67e72.tar.gz |
Fixed tests (Mathew Ericson - 738607)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/release-1.3.0@520 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | plugins/t/check_load.t | 8 |
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; | |||
11 | my $str; | 11 | my $str; |
12 | my $t; | 12 | my $t; |
13 | 13 | ||
14 | $cmd = "./check_load 100 100 100 100 100 100"; | 14 | $cmd = "./check_load -w 100,100,100 -c 100,100,100"; |
15 | $str = `$cmd`; | 15 | $str = `$cmd`; |
16 | $t += ok $?>>8,0; | 16 | $t += ok $?>>8,0; |
17 | print "Test was: $cmd\n" if ($?); | 17 | print "Test was: $cmd\n" if ($?); |
18 | $t += ok $str, '/^load average: +[\.0-9]+, +[\.0-9]+, +[\.0-9]+$/'; | 18 | $t += ok $str, '/^OK - load average: [0-9]\.?[0-9]+, [0-9]\.?[0-9]+, [0-9]\.?[0-9]+$/'; |
19 | 19 | ||
20 | $cmd = "./check_load 0 0 0 0 0 0"; | 20 | $cmd = "./check_load -w 0,0,0 -c 0,0,0"; |
21 | $str = `$cmd`; | 21 | $str = `$cmd`; |
22 | $t += ok $?>>8,2; | 22 | $t += ok $?>>8,2; |
23 | print "Test was: $cmd\n" unless ($?); | 23 | print "Test was: $cmd\n" unless ($?); |
24 | $t += ok $str, '/^load average: +[\.0-9]+, +[\.0-9]+, +[\.0-9]+ CRITICAL$/'; | 24 | $t += ok $str, '/^CRITICAL - load average: [0-9]\.?[0-9]+, [0-9]\.?[0-9]+, [0-9]\.?[0-9]+$/'; |
25 | 25 | ||
26 | exit(0) if defined($Test::Harness::VERSION); | 26 | exit(0) if defined($Test::Harness::VERSION); |
27 | exit($tests - $t); | 27 | exit($tests - $t); |