[Nagiosplug-checkins] nagiosplug/plugins/t check_procs.t,1.3,1.4
Ton Voon
tonvoon at users.sourceforge.net
Tue Sep 20 04:35:24 CEST 2005
Update of /cvsroot/nagiosplug/nagiosplug/plugins/t
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27818/plugins/t
Modified Files:
check_procs.t
Log Message:
Support for Tru64 for check_procs + additional test cases
Index: check_procs.t
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/t/check_procs.t,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- check_procs.t 25 Jul 2005 01:47:15 -0000 1.3
+++ check_procs.t 20 Sep 2005 11:34:34 -0000 1.4
@@ -10,7 +10,7 @@
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 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);
More information about the Commits
mailing list