Code

Support for Tru64 for check_procs + additional test cases
[nagiosplug.git] / plugins / t / check_procs.t
index cb5f1224be30a316284b9fb19ec99b15a2d1749f..91f5c44d6d09a57ff4656b5731767bfd76bbfc87 100644 (file)
@@ -10,7 +10,7 @@ use Test;
 use NPTest;
 
 use vars qw($tests);
-BEGIN {$tests = 10; plan tests => $tests}
+BEGIN {$tests = 12; plan tests => $tests}
 
 my $t;
 
@@ -19,6 +19,7 @@ $t += checkCmd( "./check_procs -w 100000 -c   100000 -s Z", 0, '/^PROCS OK: [0-9
 $t += checkCmd( "./check_procs -w      0 -c 10000000",      1, '/^PROCS WARNING: [0-9]+ process(es)?$/' );
 $t += checkCmd( "./check_procs -w 0      -c        0",      2, '/^PROCS CRITICAL: [0-9]+ process(es)?$/' );
 $t += checkCmd( "./check_procs -w 0      -c        0 -s S", 2, '/^PROCS CRITICAL: [0-9]+ process(es)? with /' );
+$t += checkCmd( "./check_procs -w 0      -c 10000000 -p 1", 1, "/^PROCS WARNING: [0-9]+ process(es)? with PPID = 1/' );
 
 exit(0) if defined($Test::Harness::VERSION);
 exit($tests - $t);