You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Issac Goldstand <ma...@beamartyr.net> on 2004/08/23 20:32:55 UTC

[mp2] make test for 1.99_16 fails

1. Problem Description:

  Make test fails on modperl/setupenv.t and preconnection/note.t

t/modperl/setupenv......# connecting to
http://hector.mirimar.net:8530/TestModpe
rl__setupenv
1..63
# Running under perl version 5.008005 for linux
# Current time local: Mon Aug 23 21:28:52 2004
# Current time GMT:   Mon Aug 23 18:28:52 2004
# Using Test.pm version 1.25
# Using Apache/Test.pm version 1.14

# trying http://hector.mirimar.net:8530/TestModperl__setupenv_mpsetup
# testing : found REMOTE_ADDR in %ENV
# expected: 199.203.54.245
# received: 127.0.0.1
not ok 8

# trying http://hector.mirimar.net:8530/TestModperl__setupenv_mpvoid
# testing : found REMOTE_ADDR in %ENV
# expected: 199.203.54.245
# received: 127.0.0.1
not ok 22

# trying http://hector.mirimar.net:8530/TestModperl__setupenv_mpsetupvoid
# testing : found REMOTE_ADDR in %ENV
# expected: 199.203.54.245
# received: 127.0.0.1
not ok 29

# trying http://hector.mirimar.net:8530/TestModperl__setupenv_psdefault
# testing : found REMOTE_ADDR in %ENV
# expected: 199.203.54.245
# received: 127.0.0.1
not ok 36

# trying http://hector.mirimar.net:8530/TestModperl__setupenv_psvoid
# testing : found REMOTE_ADDR in %ENV
# expected: 199.203.54.245
# received: 127.0.0.1
not ok 50

# trying http://hector.mirimar.net:8530/TestModperl__setupenv_psnosetupvoid
# testing : found REMOTE_ADDR in %ENV
# expected: 199.203.54.245
# received: 127.0.0.1
not ok 57

FAILED tests 8, 22, 29, 36, 50, 57
        Failed 6/63 tests, 90.48% okay

# testing : connection notes
# Failed test 1 in t/preconnection/note.t at line 17
# expected: 199.203.54.245
# received: 127.0.0.1
not ok 1
FAILED test 1
        Failed 1/1 tests, 0.00% okay
Failed Test            Stat Wstat Total Fail  Failed  List of Failed
----------------------------------------------------------------------------
---
t/modperl/setupenv.t                 63    6   9.52%  8 22 29 36 50 57
t/preconnection/note.t                1    1 100.00%  1
Failed 2/2 test scripts, 0.00% okay. 7/64 subtests failed, 89.06% okay.
[warning] server hector.mirimar.net:8529 shutdown
[  error] error running tests (please examine t/logs/error_log)

2. Used Components and their Configuration:

*** mod_perl version 1.9916

*** using /home/issac/build/mod_perl-1.99_16/lib/Apache/BuildConfig.pm

*** Makefile.PL options:
  MP_APR_LIB     => aprext
  MP_APXS        => /usr/local/httpd/bin/apxs
  MP_COMPAT_1X   => 1
  MP_GENERATE_XS => 1
  MP_LIBNAME     => mod_perl
  MP_USE_DSO     => 1
  MP_USE_STATIC  => 1


*** /usr/local/httpd/bin/httpd -V
Server version: Apache/2.0.50
Server built:   Aug  3 2004 18:51:42
Server's Module Magic Number: 20020903:8
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/worker"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_PROC_PTHREAD_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/usr/local/httpd"
 -D SUEXEC_BIN="/usr/local/httpd/bin/suexec"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="/config/httpd/mime.types"
 -D SERVER_CONFIG_FILE="/config/httpd/httpd.conf"


*** (apr|apu)-config linking info

 -L/usr/local/httpd/lib -lapr-0 -lrt -lm -lcrypt -lnsl  -lpthread -ldl
 -L/usr/local/httpd/lib -laprutil-0 -lgdbm -ldb-4.2 -lexpat



*** /usr/local/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
  Platform:
    osname=linux, osvers=2.6.7-1-686-smp,
archname=i686-linux-thread-multi-64in
-ld
    uname='linux hector.mirimar.net 2.6.7-1-686-smp #1 smp thu jul 29
14:28:01
dt 2004 i686 gnulinux '
    config_args=''
    hint=previous, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define
usemultiplicity=d
fine
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=undef uselongdouble=define
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags
='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-stri
t-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BIT
S=6
 -DDEBIAN',
    optimize='-O3 -march=pentium4 -mcpu=pentium4',



 cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasi
g -pipe -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS 
-fn
-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFS
ET_
ITS=64 -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -
pip
 -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDEBIAN -D
_RE
NTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -I/usr/l
oca
/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDEBIAN -D_REENTRANT -D
_GN
_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -I/usr/local/include 
-D_
ARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDEBIAN -D_REENTRANT -D_GNU_SOURCE -
DTH
EADS_HAVE_PIDS -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_
SOU
CE -D_FILE_OFFSET_BITS=64 -DDEBIAN -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE
_PI
S -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FIL
E_O
FSET_BITS=64 -DDEBIAN -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-st
ric
-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS
=64
-DDEBIAN'
    ccversion='', gccversion='3.3.4 (Debian 1:3.3.4-3)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long long', ivsize=8, nvtype='long double', nvsize=12,
Off_t='off_t
, lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/libc-2.3.2.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.3.2'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-fPIC -Wl,-rpath,
usr/local/lib/perl5/5.8.5/i686-debian-thread-multi-ld/CORE '
    cccdlflags='-fpic', lddlflags=' -L/usr/local/lib -shared'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_64_BIT_INT
USE_LONG_DOUBL
 USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at Aug  9 2004 20:44:08
  %ENV:
    PERL5LIB="/home/issac/perl/lib/perl/5.8.3/auto"
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /home/issac/perl/lib/perl/5.8.3/auto
    /usr/local/lib/perl5/5.8.5/i686-debian-thread-multi-ld
    /usr/local/lib/perl5/5.8.5
    /usr/local/lib/perl5/site_perl/5.8.5/i686-debian-thread-multi-ld
    /usr/local/lib/perl5/site_perl/5.8.5
    /usr/local/lib/perl5/site_perl
    /usr/lib/perl5
    /usr/share/perl5
    /usr/share/perl5
    /etc/perl
    /usr/lib/perl/5.8
    /usr/share/perl/5.8
    /usr/local/httpd/lib/perl
    /usr/local/lib/site_perl
    /usr/local/lib/perl/5.8.4
    /usr/local/share/perl/5.8.4
    /usr/local/lib/perl/5.8.3
    /usr/local/share/perl/5.8.3
    .

*** Packages of interest status:

Apache::Request: -
CGI            : 3.04, 3.05, 3.05
LWP            : 5.800, 5.800
mod_perl       : -


This report was generated by t/REPORT on Mon Aug 23 18:26:33 2004 GMT.


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] make test for 1.99_16 fails

Posted by Stas Bekman <st...@stason.org>.
Issac, for the future, your report is still incomplete:
http://perl.apache.org/docs/2.0/user/help/help.html#_C_make_test___Failures

   post to the mailing list the output of the individual tests running
   *and the contents of t/logs/error_log*.

the error_log was missing from this report.

But for this particular case what you have sent is good enough.

 > # trying http://hector.mirimar.net:8530/TestModperl__setupenv_mpsetup
 > # testing : found REMOTE_ADDR in %ENV
 > # expected: 199.203.54.245
 > # received: 127.0.0.1
 > not ok 8
[and the rest is the same issue]

This is not a mod_perl problem, just a mismatch of what your system 
reports about the IP of your machine at different times. Apache sees your 
client coming from 127.0.0.1 and the Apache-Test framework finds your 
machine to have the IP 199.203.54.245.

Ideas on how to fix the test suite to handle this kind of problem are very 
welcome.

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

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html