perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject Re: problems with t/apache/content_length_header skip
Date Fri, 01 Jul 2005 20:06:25 GMT

>> And I also agree that my $x if $y is a bad idea.
>>
> How about:
> Index: content_length_header.t
> ===================================================================
> --- content_length_header.t     (revision 202420)
> +++ content_length_header.t     (working copy)
> @@ -5,8 +5,9 @@
> use Apache::TestUtil;
> use Apache::TestRequest;
> 
> -my $skip = skip_reason('investigating 2.1 C-L behaviors')
> -    if have_min_apache_version(2.1);
> +my $skip = have_min_apache_version(2.1) ?
> +    skip_reason('investigating 2.1 C-L behaviors') :
> +    1;
> 
> plan tests => 12 * 2 + 3, $skip;

that's fine.  consider it a good test for your commit privs when they arrive
next week :)

--Geoff

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message