RE: Test unexpectedly succeeded during make test

2003-07-29 Thread Laus, Ryan J.
Stas,

I had an older version of CGI.pm.  After installing the new module
everything worked perfect.  Thanks for you help!

Ryan Laus


-Original Message-
From: Stas Bekman [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 28, 2003 6:11 PM
To: Laus, Ryan J.
Cc: [EMAIL PROTECTED]
Subject: Re: Test unexpectedly succeeded during make test


Laus, Ryan J. wrote:
> Stas,
> 
> Successfully installed LWP.

So the filter/in_bbs_msg.t problem went away?

> I am receiving the following error when
> running "make test"
> cgiok 1/2# Failed test 2 in cgi.t at line 19 
> cgiFAILED test 2
> Failed 1/2 tests, 50.00% okay

Have you tried upgrading your CGI.pm? 2.93 or higher is required. The
cvs 
version does that already.

> [Mon Jul 28 10:38:54 2003] [error] [client 127.0.0.1] File does not
> exist: /usr/ local/tmp/mod_perl-1.99_09/t/htdocs/registry/cgi.pl

[...]

> I tried creating a directory under htdocs called registry and then 
> copying the cgi.pl file into that directory just to see what would 
> happen and both tests failed.

no, no it's , for some reason it can't find 
t/cgi-bin/cgi.pl, so it thinks that it might be a static file, 
t/htdocs/registry/cgi.pl which it's not.

__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Re: Test unexpectedly succeeded during make test

2003-07-28 Thread Stas Bekman
Laus, Ryan J. wrote:
Stas,

Successfully installed LWP. 
So the filter/in_bbs_msg.t problem went away?

I am receiving the following error when
running "make test"
cgiok 1/2# Failed test 2 in cgi.t at line 19
cgiFAILED test 2
Failed 1/2 tests, 50.00% okay
Have you tried upgrading your CGI.pm? 2.93 or higher is required. The cvs 
version does that already.

[Mon Jul 28 10:38:54 2003] [error] [client 127.0.0.1] File does not
exist: /usr/
local/tmp/mod_perl-1.99_09/t/htdocs/registry/cgi.pl
[...]

I tried creating a directory under htdocs called registry and then
copying the cgi.pl file into that directory just to see what would
happen and both tests failed.
no, no it's , for some reason it can't find 
t/cgi-bin/cgi.pl, so it thinks that it might be a static file, 
t/htdocs/registry/cgi.pl which it's not.

__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


RE: Test unexpectedly succeeded during make test

2003-07-28 Thread Laus, Ryan J.
Stas,

Successfully installed LWP.  I am receiving the following error when
running "make test"
cgiok 1/2# Failed test 2 in cgi.t at line 19
cgiFAILED test 2
Failed 1/2 tests, 50.00% okay


Running the TEST -v command on ../ModPerl-Registry/t/cgi.t gives me the
following error:

../ModPerl-Registry/t/cgi1..2
# testing : test 'Content-type header setting
# expected: qr/(?-xism:^text\/html)/
# received: 'text/html; charset=iso-8859-1'
ok 1
# testing : test body
# expected: 'done'
# Failed test 2 in ../ModPerl-Registry/t/cgi.t at line 19
# received: '
# 
# 404 not found
# 
# not found
# the requested url /registry/cgi.pl was not found on this
server.
# 
# '
not ok 2
FAILED test 2
Failed 1/2 tests, 50.00% okay
Failed Test Stat Wstat Total Fail  Failed  List of
Failed

---
../ModPerl-Registry/t/cgi.t21  50.00%  2
*** server localhost:8529 shutdown
!!! error running tests (please examine t/logs/error_log)


The error_log then contains the following:

END in modperl_extra.pl, pid=8008
[Mon Jul 28 10:38:51 2003] [notice] Apache/2.0.47 (Unix)
mod_perl/1.99_09 Perl/v
5.8.0 configured -- resuming normal operations
[Mon Jul 28 10:38:51 2003] [info] Server built: Jul 14 2003 15:48:58
[Mon Jul 28 10:38:51 2003] [debug] prefork.c(1037): AcceptMutex: pthread
(defaul
t: pthread)
[Mon Jul 28 10:38:52 2003] [error] server reached MaxClients setting,
consider r
aising the MaxClients setting
[Mon Jul 28 10:38:54 2003] [error] [client 127.0.0.1] File does not
exist: /usr/
local/tmp/mod_perl-1.99_09/t/htdocs/registry/cgi.pl
[Mon Jul 28 10:38:54 2003] [info] Child process pid=8010 is exiting
[Mon Jul 28 10:38:54 2003] [info] removed PID file
/usr/local/tmp/mod_perl-1.99_
09/t/logs/httpd.pid (pid=11894)
[Mon Jul 28 10:38:54 2003] [notice] caught SIGTERM, shutting down
END in modperl_extra.pl, pid=11894

I tried creating a directory under htdocs called registry and then
copying the cgi.pl file into that directory just to see what would
happen and both tests failed.

Any Ideas?
Thanks for you help!

Ryan Laus



-Original Message-
From: Stas Bekman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 24, 2003 6:33 PM
To: Laus, Ryan J.
Cc: [EMAIL PROTECTED]
Subject: Re: Test unexpectedly succeeded during make test


First of all, when reporting problems please following the guidelines:
http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems

> OS: AIX 4.3.3 w/the latest maintenance level

> modperl/request_rec_tie_apiok
> 1/3 unexpectedly succeeded

The test t/response/TestModperl/request_rec_tie_api.pm goes as:

 require Apache::Build;
 my @todo;
 push @todo, 1 if Apache::Build::AIX();
 plan $r, tests => 3, todo => [EMAIL PROTECTED];

 # XXX: on AIX 4.3.3 we get:
 # STDIN STDOUT STDERR
 # perl:   0  1  2
 # mod_perl:   0  0  2
 my $fileno = fileno STDOUT;
 ok $fileno;
 t_debug "fileno STDOUT: $fileno";

the problem is that on the AIX that I was testing I was receiving STDOUT
as 0 
under mod_perl. I don't remember which perl it was :( but this is not a
problem.


This is the test that really fails:

 > filter/in_bbs_msg.t  255 65280??   ??   %  ??

please run this test separately and post the error_log file and the
output of 
the run:

rm t/logs/error_log
t/TEST -v filter/in_bbs_msg.t


Next you also want to install LWP, otherwise many of the tests aren't
running:

> all skipped: cannot find module 'LWP'



__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Re: Test unexpectedly succeeded during make test

2003-07-24 Thread Stas Bekman
First of all, when reporting problems please following the guidelines:
http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems
OS: AIX 4.3.3 w/the latest maintenance level

modperl/request_rec_tie_apiok
1/3 unexpectedly succeeded
The test t/response/TestModperl/request_rec_tie_api.pm goes as:

require Apache::Build;
my @todo;
push @todo, 1 if Apache::Build::AIX();
plan $r, tests => 3, todo => [EMAIL PROTECTED];
# XXX: on AIX 4.3.3 we get:
# STDIN STDOUT STDERR
# perl:   0  1  2
# mod_perl:   0  0  2
my $fileno = fileno STDOUT;
ok $fileno;
t_debug "fileno STDOUT: $fileno";
the problem is that on the AIX that I was testing I was receiving STDOUT as 0 
under mod_perl. I don't remember which perl it was :( but this is not a problem.

This is the test that really fails:

> filter/in_bbs_msg.t  255 65280??   ??   %  ??

please run this test separately and post the error_log file and the output of 
the run:

rm t/logs/error_log
t/TEST -v filter/in_bbs_msg.t
Next you also want to install LWP, otherwise many of the tests aren't running:

all skipped: cannot find module 'LWP'


__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Test unexpectedly succeeded during make test

2003-07-24 Thread Laus, Ryan J.
Hello everyone,

Hopefully someone can help me out, I am having problems during the "make
test" when trying to compile mod_perl-1.99_09.  Even though a "make
install" will work fine without any errors, I am not sure if it is a
good idea to install if the make test fails.

Here is my system background info.
OS: AIX 4.3.3 w/the latest maintenance level
Perl: 5.8.0,  via Binary installation
Apache: 2.0.47
GCC: 3.3

During the "make test" I receive the following error:

modperl/request_rec_tie_apiok
1/3 unexpectedly succeeded
modperl/sameinterp.ok
modperl/setauthok
modperl/subenv.ok
modperl/taint..ok
modules/cgiskipped
all skipped: cannot find module 'LWP'
modules/cgiupload..skipped
all skipped: cannot find module 'LWP'
modules/includeok
modules/include2...ok
preconnection/note.ok
protocol/echo..ok
protocol/echo_filter...ok
Failed Test Stat Wstat Total Fail  Failed  List of Failed

---
filter/in_bbs_msg.t  255 65280??   ??   %  ??
 (1 subtest UNEXPECTEDLY SUCCEEDED), 7 tests skipped.
*** server localhost:8529 shutdown
!!! error running tests (please examine t/logs/error_log)
make: *** [run_tests] Error 1



Here is the contents of my error_log:

Script command is started on Thu Jul 24 15:58:30 CDT 2003.# cat
error_log
END in modperl_extra.pl, pid=10926
[Thu Jul 24 14:54:26 2003] [notice] Apache/2.0.47 (Unix)
mod_perl/1.99_09 Perl/v5.8.0 configured -- resuming normal operations
[Thu Jul 24 14:54:26 2003] [info] Server built: Jul 14 2003 15:48:58
[Thu Jul 24 14:54:26 2003] [debug] prefork.c(1037): AcceptMutex: pthread
(default: pthread)
[Thu Jul 24 14:54:27 2003] [error] server reached MaxClients setting,
consider raising the MaxClients setting
[Thu Jul 24 14:54:41 2003] [info] [client 127.0.0.1] TestAPI::aplog test
in progress
[Thu Jul 24 14:54:41 2003] [debug]
/usr/local/tmp/mod_perl-1.99_09/t/response/TestAPI/aplog.pm(43):
log_serror test ok
[Thu Jul 24 14:54:41 2003] [debug]
/usr/local/tmp/mod_perl-1.99_09/t/response/TestAPI/aplog.pm(46):
(20007)No time was provided and one was required.: log_serror test 2 ok
[Thu Jul 24 14:54:41 2003] [debug]
/usr/local/tmp/mod_perl-1.99_09/t/response/TestAPI/aplog.pm(49): [client
127.0.0.1] (20007)No time was provided and one was required.: log_rerror
test ok
[Thu Jul 24 14:54:41 2003] [error] $r->log_error test ok
[Thu Jul 24 14:54:41 2003] [error] $s->log_error test ok
[Thu Jul 24 14:54:41 2003] [debug]
/usr/local/tmp/mod_perl-1.99_09/t/response/TestAPI/aplog.pm(63):
TestAPI::aplog test done
[Thu Jul 24 14:54:41 2003] [warn] ApacheApache->warn test ok
[Thu Jul 24 14:54:41 2003] [warn] $s->warn test ok
[Thu Jul 24 14:55:06 2003] [error] Apache::log_error test ok

*** The following error entry is expected and it is harmless ***
[Thu Jul 24 14:55:29 2003] [error] [client 127.0.0.1] Undefined
subroutine &TestError::runtime::no_such_func called at
/usr/local/tmp/mod_perl-1.99_09/t/response/TestError/runtime.pm line 19.


*** The following error entry is expected and it is harmless ***
[Thu Jul 24 14:55:30 2003] [error] failed to resolve handler
`TestError::syntax'
[Thu Jul 24 14:55:30 2003] [error] [client 127.0.0.1] syntax error at
/usr/local/tmp/mod_perl-1.99_09/t/response/TestError/syntax.pm line 22,
near "\;"
Compilation failed in require at (eval 115) line 3.

[echo_filter] get_brigade: Error 0
[Thu Jul 24 14:55:34 2003] [error] [client 127.0.0.1] File does not
exist: /usr/local/tmp/mod_perl-1.99_09/t/htdocs/input_filter.html

*** The following error entry is expected and it is harmless ***
[Thu Jul 24 14:56:01 2003] [error] [client 127.0.0.1] File does not
exist: /usr/local/tmp/mod_perl-1.99_09/t/htdocs/nope

*** The following error entry is expected and it is harmless ***
[Thu Jul 24 14:56:18 2003] [error] [client 127.0.0.1] need AuthName:
/TestModperl__setauth
[Thu Jul 24 14:56:27 2003] [info] Child process pid=10928 is exiting
[Thu Jul 24 14:56:27 2003] [info] removed PID file
/usr/local/tmp/mod_perl-1.99_09/t/logs/httpd.pid (pid=11248)
[Thu Jul 24 14:56:27 2003] [notice] caught SIGTERM, shutting down
END in modperl_extra.pl, pid=11248


Thanks in advance!

Ryan Laus