[Nagiosplug-devel] patch for check_procs.t
Voon, Ton
Ton.Voon at egg.com
Fri May 16 04:05:05 CEST 2003
Mathew,
Thank you for all these patches. I know I've been slack on updating the test
cases.
If you can add your patches to SF (just have the one call if you prefer and
add more patch files to it), that will make it easier to track.
Ton
> -----Original Message-----
> From: Mathew Ericson [SMTP:mathew_ericson at agilent.com]
> Sent: Friday, May 16, 2003 2:44 AM
> To: nagiosplug-devel at lists.sourceforge.net
> Subject: [Nagiosplug-devel] patch for check_procs.t
>
> Dear nagiosdevel,
>
> Here is a patch for some typos in check_procs.t that were causing
> failures. How can I get these reviewed and checked-in:
>
> --- 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);
>
> thanks
> mathew
> --
> Mathew Ericson
> CC/Unix System Administrator
> Agilent Technologies, Inc.
> 613 9210 5956 Tel
>
This private and confidential e-mail has been sent to you by Egg.
The Egg group of companies includes Egg Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
carries out investment business on behalf of Egg and is regulated
by the Financial Services Authority.
Registered in England and Wales. Registered offices: 1 Waterhouse Square,
138-142 Holborn, London EC1N 2NA.
If you are not the intended recipient of this e-mail and have
received it in error, please notify the sender by replying with
'received in error' as the subject and then delete it from your
mailbox.
More information about the Devel
mailing list