[Nagiosplug-devel] [ nagiosplug-Patches-738607 ] patch for check_load.t against rel1_3

SourceForge.net noreply at sourceforge.net
Sat May 17 11:00:05 CEST 2003


Patches item #738607, 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=738607&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_load.t against rel1_3

Initial Comment:
--- check_load.t.orig   2003-05-16 10:56:03.000000000 +1000
+++ check_load.t        2003-05-16 11:21:47.000000000 +1000
@@ -15,13 +15,13 @@
 $str = `$cmd`;
 $t += ok $?>>8,0;
 print "Test was: $cmd\n" if ($?);
-$t += ok $str, '/^load average: +[\.0-9]+, +[\.0-9]+,
+[\.0-9]+$/';
+$t += ok $str, '/^[O|o]?[K|k]?\s?\-?\s?load
average:\s[0-9]?\.?[0-9]+,\s[0-9]?\.?[0-9]+,\s[0-9]?\.?[0-9]+/';

 $cmd = "./check_load 0 0 0 0 0 0";
 $str = `$cmd`;
 $t += ok $?>>8,2;
 print "Test was: $cmd\n" unless ($?);
-$t += ok $str, '/^load average: +[\.0-9]+, +[\.0-9]+,
+[\.0-9]+ CRITICAL$/';
+$t += ok $str, '/^CRITICAL\s\-\sload
average:\s[0-9]?[\.0-9]+, [0-9?][\.0-9]+, [0-9]?[\.0-9]/';

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

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

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

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=738607&group_id=29880




More information about the Devel mailing list