develooper Front page | perl.perl5.porters | Postings from March 2001

[ID 20010305.008] lib/1_compile and lib/dosglob fail in maketest, but not when harnesed

Thread Next
From:
dcd
Date:
March 5, 2001 12:00
Subject:
[ID 20010305.008] lib/1_compile and lib/dosglob fail in maketest, but not when harnesed
Message ID:
200103052000.MAA06947@dd.tc.fluke.com
This is a bug report for perl from dcd@tc.fluke.com,
generated with the help of perlbug 1.33 running under perl v5.7.0.


-----------------------------------------------------------------
[Please enter your report here]

When executing make test I get the following failures

lib/1_compile.........FAILED at test 13
lib/dosglob...........FAILED at test 10

If I run these 2 tests directly from harness they don't fail

dd:t$ ./perl -I../lib harness lib/1_compile.t lib/dosglob.t
lib/1_compile.......ok                                                       
lib/dosglob.........ok                                                       
All tests successful.
Files=2, Tests=147, 13 wallclock secs (11.80 cusr +  1.16 csys = 12.96 CPU)


If I run the whole test suite, the above tests still pass
dd:t$ ./perl -I../lib harness

./perl TEST </dev/tty;    # (same as ./perl TEST )
lib/1_compile.........FAILED at test 8
lib/dosglob...........FAILED at test 10
lib/ipc_sysv..........FAILED at test 0

./perl -I../lib TEST  lib/1_compile.t lib/dosglob.t lib/ipc_sysv.t
lib/1_compile...FAILED at test 8
lib/dosglob.....FAILED at test 10
lib/ipc_sysv....FAILED at test 0



I am puzzled as to why lib/1_compile fails on make test at
step 13 on make test, but at test 8 when executed as ./perl TEST </dev/tty;
 (this is repeatable)

Also strange is why lib/ipc_sysv doesn't fail under make test, but
only under ./perl TEST </dev/tty;
 (this too is repeatable)


---
For one last test I modified t/TEST to set @ARGV to
  @ARGV = qw(lib/1_compile.t lib/dosglob.t lib/ipc_sysv.t)

and reran make test  and the stand alone 'equivalent' and
still get the different results. (note how 1_compile still
fails at test 13 instead of test 8, and ipc_sysv passes
under make test. 

.....
cd t && (rm -f perl; /bin/ln -s ../perl perl)
if (true </dev/tty) >/dev/null 2>&1; then \
  cd t &&  ./perl TEST </dev/tty; \
else \
  cd t && PERL_SKIP_TTY_TEST=1  ./perl TEST; \
fi
lib/1_compile...FAILED at test 13
lib/dosglob.....FAILED at test 10
lib/ipc_sysv....ok
Failed 2 test scripts out of 3, 33.33% okay.
   ### Since not all tests were successful, you may want to run some
   ### of them individually and examine any diagnostic messages they
   ### produce.  See the INSTALL document's section on "make test".
   ### If you are testing the compiler, then ignore this message 
   ### and run 
   ###      ./perl harness
   ### in the directory ./t.
u=0.01  s=0.01  cu=2.95  cs=0.19  scripts=3  tests=163
make: *** [test] Error 1


dd:perl-current$ (  cd t &&  ./perl TEST </dev/tty; )
/hdb2/home/dcd/CPAN/perl-current/t
lib/1_compile...FAILED at test 8
lib/dosglob.....FAILED at test 10
lib/ipc_sysv....FAILED at test 0
Failed 3 test scripts out of 2, -50.00% okay.
   ### Since not all tests were successful, you may want to run some
   ### of them individually and examine any diagnostic messages they
   ### produce.  See the INSTALL document's section on "make test".
   ### If you are testing the compiler, then ignore this message 
   ### and run 
   ###      ./perl harness
   ### in the directory ./t.
u=0.02  s=0.01  cu=1.54  cs=0.11  scripts=2  tests=147


!! Note the "Failed 3 test scripts out of 2, -50.00% okay." above



[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=medium
---
This perlbug was built using Perl v5.7.0 - Fri Jan 12 16:03:35 PST 2001
It is being executed now by  Perl v5.7.0 - Mon Mar  5 10:59:53 PST 2001.

Site configuration information for perl v5.7.0:

Configured by dcd at Mon Mar  5 10:59:53 PST 2001.

Summary of my perl5 (revision 5.0 version 7 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.4.3-pre2, archname=i686-linux
    uname='linux dd 2.4.3-pre2 #1 mon mar 5 08:49:56 pst 2001 i686 '
    config_args='-Dinstallusrbinperl -Dusedevel -Doptimize=-O3 -g -de -Dcf_email=dcd@tc.fluke.com'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='cc', ccflags ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O3 -g',
    cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='egcs-2.91.66.1 19990314/Linux (egcs-1.1.2 release)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lgdbm -ldbm -ldb -ldl -lm -lc
    perllibs=-ldl -lm -lc
    libc=/lib/libc.so.5.4.44, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:
    DEVEL8403

---
@INC for perl v5.7.0:
    /usr/local/lib/perl5/5.7.0/i686-linux
    /usr/local/lib/perl5/5.7.0
    /usr/local/lib/perl5/site_perl/5.7.0/i686-linux
    /usr/local/lib/perl5/site_perl/5.7.0
    /usr/local/lib/perl5/site_perl
    .

---
Environment for perl v5.7.0:
    HOME=/home/dcd
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/dcd/bin:/sbin:/usr/local/bin:/bin:/usr/bin:/usr/X11/bin:/usr/games:/usr/local/samba:/home/hobbes/tools/scripts:/home/hobbes/tools/linux:/usr0/hobbes/tools/scripts:/usr0/dcd/bin:/apps/general/bin:/usr/public
    PERL_BADLANG (unset)
    SHELL=/bin/bash


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About