summaryrefslogtreecommitdiffstats
path: root/plugins/t/check_load.t
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/t/check_load.t')
-rw-r--r--plugins/t/check_load.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/t/check_load.t b/plugins/t/check_load.t
index fce168f..414e09d 100644
--- a/plugins/t/check_load.t
+++ b/plugins/t/check_load.t
@@ -15,13 +15,13 @@ $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;
17print "Test was: $cmd\n" if ($?); 17print "Test was: $cmd\n" if ($?);
18$t += ok $str, '/^OK - load average: [0-9]\.?[0-9]+, [0-9]\.?[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 -w 0,0,0 -c 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;
23print "Test was: $cmd\n" unless ($?); 23print "Test was: $cmd\n" unless ($?);
24$t += ok $str, '/^CRITICAL - load average: [0-9]\.?[0-9]+, [0-9]\.?[0-9]+, [0-9]\.?[0-9]+$/'; 24$t += ok $str, '/^CRITICAL - load average: [0-9]\.?[0-9]+, [0-9]\.?[0-9]+, [0-9]\.?[0-9]+/';
25 25
26exit(0) if defined($Test::Harness::VERSION); 26exit(0) if defined($Test::Harness::VERSION);
27exit($tests - $t); 27exit($tests - $t);