Re: [mp2] make test errors

[prev] [thread] [next] [Date index for 2005/02/18]

From: Stas Bekman
Subject: Re: [mp2] make test errors
Date: 22:32 on 18 Feb 2005
William McKee wrote:
[...]
> To recap, these are the results of the mp2 test (RC4) with the following
> environment setting:
> 
>   export ac_cv_o_nonblock_inherited=yes
[...]
>   # Failed test 2 in t/api/access2.t at line 15
>   # testing : no credentials passed
>   # expected: 401
>   # received: 403
>   not ok 2

I'm not sure why this happens. It should be:

# testing : no credentials passed
# expected: 401
# received: 401
ok 2

HTTP_FORBIDDEN is not returned by ap_get_basic_auth_pw. Try to dump the 
$rc code in that sub-test in t/response/TestAPI/access2.pm

     my($rc, $sent_pw) = $r->get_basic_auth_pw;
     warn "RC: $rc\n";
     return $rc if $rc != Apache::OK;

>   ok 3
>   ok 4
>   not ok 5
>   # Failed test 5 in t/api/access2.t at line 24
>   not ok 6
>   # Failed test 6 in t/api/access2.t at line 27
>   FAILED tests 2, 5-6

What the error_log says about those two?

It looks like a fileperms problem again. Try to make sure that the 
ownership of all files under t/ is the same.

find t -type d -exec chmod u+rwx {} \;
find t -type f -exec chmod u+rw {} \;
find t -type d -exec chown uid.gid {} \;
find t -type f -exec chown uid.gid {} \;

where uid.gid is the id you use to run the tests with (e.g. nobody.nobody)


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

(message missing)

[mp2] make test errors
William McKee 19:37 on 13 Feb 2005

Re: [mp2] make test errors
Stas Bekman 23:41 on 15 Feb 2005

Re: [mp2] make test errors
William McKee 13:32 on 16 Feb 2005

Re: [mp2] make test errors
William McKee 14:33 on 16 Feb 2005

Re: [mp2] make test errors
William McKee 15:44 on 16 Feb 2005

Re: [mp2] make test errors
Stas Bekman 21:12 on 16 Feb 2005

Re: [mp2] make test errors
William McKee 22:21 on 16 Feb 2005

Re: [mp2] make test errors
Stas Bekman 21:06 on 16 Feb 2005

Re: [mp2] make test errors
William McKee 22:46 on 16 Feb 2005

Re: [mp2] make test errors
Stas Bekman 00:14 on 17 Feb 2005

Re: [mp2] make test errors
William McKee 14:05 on 17 Feb 2005

Re: [mp2] make test errors
Stas Bekman 23:21 on 17 Feb 2005

Re: [mp2] make test errors
Stas Bekman 21:08 on 16 Feb 2005

Re: [mp2] make test errors
William McKee 22:26 on 16 Feb 2005

Re: [mp2] make test errors
Stas Bekman 00:12 on 17 Feb 2005

Re: [mp2] make test errors
Joe Orton 10:39 on 17 Feb 2005

Re: [mp2] make test errors
William McKee 14:18 on 17 Feb 2005

Re: [mp2] make test errors
William McKee 14:16 on 17 Feb 2005

Re: [mp2] make test errors
Joe Orton 16:53 on 17 Feb 2005

Re: [mp2] make test errors
William McKee 20:05 on 17 Feb 2005

Re: [mp2] make test errors
Stas Bekman 23:27 on 17 Feb 2005

Re: [mp2] make test errors
William McKee 17:11 on 18 Feb 2005

Re: [mp2] make test errors
Stas Bekman 22:32 on 18 Feb 2005

Re: [mp2] make test errors
Jie Gao 22:37 on 18 Feb 2005

Re: [mp2] make test errors
William McKee 10:39 on 02 Jun 2005

Re: [mp2] make test errors
Joe Orton 13:40 on 18 Feb 2005

Re: [mp2] make test errors
William McKee 15:15 on 18 Feb 2005

Re: [mp2] make test errors
William McKee 20:07 on 18 Feb 2005

Re: [mp2] make test errors
Stas Bekman 22:35 on 18 Feb 2005

Re: [mp2] make test errors
Stas Bekman 23:08 on 18 Feb 2005

Re: [mp2] make test errors
Joe Orton 09:54 on 24 Feb 2005

Re: [mp2] make test errors
Stas Bekman 05:09 on 25 Feb 2005

Generated at 20:12 on 05 Jun 2005 by mariachi v0.52