You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-dev@httpd.apache.org by Gavin Carr <ga...@openfusion.com.au> on 2004/04/14 14:26:52 UTC

apr_base64 weirdness under Apache::Test

Hi test gurus,

Newbie weirdness question: I'm testing an apache C module using Apache::Test,
and it's failing somehow in a call to apr_base64_decode:

      buf = (char *) apr_palloc(r->pool, len+1);
      /* This line fails under Apache::Test */
      len = apr_base64_decode(buf, ticket);

buf is always empty, and len set to 0, although the ticket is definitely
valid, and the code works perfectly via my normal httpd.conf. Nothing
in the error log at Debug level either. Is there some Apache::Test lever
I'm missing somewhere, or is likely something else?

This is A::T 1.08, apache 2.0.48, and using a bog-standard 'perl Makefile.PL 
-apxs <apxs>' and t/TEST. 

Cheers,
Gavin


Re: apr_base64 weirdness under Apache::Test

Posted by Stas Bekman <st...@stason.org>.
Gavin Carr wrote:
> Hi test gurus,
> 
> Newbie weirdness question: I'm testing an apache C module using Apache::Test,
> and it's failing somehow in a call to apr_base64_decode:
> 
>       buf = (char *) apr_palloc(r->pool, len+1);
>       /* This line fails under Apache::Test */
>       len = apr_base64_decode(buf, ticket);
> 
> buf is always empty, and len set to 0, although the ticket is definitely
> valid, and the code works perfectly via my normal httpd.conf. Nothing
> in the error log at Debug level either. Is there some Apache::Test lever
> I'm missing somewhere, or is likely something else?
> 
> This is A::T 1.08, apache 2.0.48, and using a bog-standard 'perl Makefile.PL 
> -apxs <apxs>' and t/TEST. 

I doubt this has anything to do with A-T. It just glues pieces together.

So I'd check that your normal httpd.conf matches the autogenerated 
t/conf/httpd.conf. Check what are the differences and most likely you will see 
what the problem is.

Also you didn't say whether you use c-modules or just a plain C module. If the 
former than check that your module gets built with the same compilation arguments.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com