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

SourceForge.net noreply at sourceforge.net
Sat May 17 10:52:01 CEST 2003


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

Category: Bugfix
Group: None
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Mathew Ericson (mericson23)
>Assigned to: Ton Voon (tonvoon)
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); 

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

>Comment By: Ton Voon (tonvoon)
Date: 2003-05-17 18:51

Message:
Logged In: YES 
user_id=664364

Thanks for the patch. Applied in r1_3_0 and HEAD.

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

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