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

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


Patches item #738607, 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=738607&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_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); 

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

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