You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Geoffrey Young <ge...@modperlcookbook.org> on 2005/07/01 22:06:25 UTC

Re: problems with t/apache/content_length_header skip

>> 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