[Nagiosplug-devel] [ nagiosplug-Patches-738605 ] patch for check_procs.t againsts rel1_3

SourceForge.net noreply at sourceforge.net
Thu May 15 19:36:07 CEST 2003


Patches item #738605, was opened at 2003-05-16 02:35
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=738605&group_id=29880

Category: Bugfix
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Mathew Ericson (mericson23)
Assigned to: Nobody/Anonymous (nobody)
Summary: patch for check_procs.t againsts rel1_3

Initial Comment:
--- check_procs.t.orig  2003-05-16 11:53:38.000000000 +1000
+++ check_procs.t       2003-05-16 11:58:15.000000000 +1000
@@ -20,11 +20,11 @@
 $t += ok $str, '/^OK - [0-9]+ processes running$/';

 # Reverse Compatibility
-$cmd = "./check_procs 100000 100000 Z";
+$cmd = "./check_procs 100000 100000 -s Z";
 $str = `$cmd`;
 $t += ok $?>>8,0;
 print "Test was: $cmd\n" if ($?);
-$t += ok $str, '/^OK - [0-9]+ processes running with /';
+$t += ok $str, '/^OK - [0-9]+ processes running with/';

 # Reverse Compatibility
 $cmd = "./check_procs 0 10000000";
@@ -41,11 +41,11 @@
 $t += ok $str, '/^CRITICAL - [0-9]+ processes running$/';

 # Reverse Compatibility
-$cmd = "./check_procs 0 0 S";
+$cmd = "./check_procs 0 0 -s S";
 $str = `$cmd`;
 $t += ok $?>>8,2;
 print "Test was: $cmd\n" unless ($?);
-$t += ok $str, '/^CRITICAL - [0-9]+ processes running
with /';
+$t += ok $str, '/^CRITICAL - [0-9]+ processes running
with/';

 exit(0) if defined($Test::Harness::VERSION);
 exit($tests - $t); 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=738605&group_id=29880




More information about the Devel mailing list