develooper Front page | perl.perl5.porters | Postings from July 2014

[perl #122303] [PATCH] Fix autouse test broken by newer Test::Builder

From:
Chad Granum
Date:
July 16, 2014 08:55
Subject:
[perl #122303] [PATCH] Fix autouse test broken by newer Test::Builder
Message ID:
rt-4.0.18-3182-1405490455-970.122303-75-0@perl.org
# New Ticket Created by  Chad Granum 
# Please include the string:  [perl #122303]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=122303 >


This is a bug report for perl from exodist7@gmail.com,
generated with the help of perlbug 1.40 running under perl 5.20.0.


-----------------------------------------------------------------
The latest Test::Builder uses Scalar::Util quite a bit, enough so that
delayed
load would not be helpful. the test suite for autouse depends on
Scalar::Util
not being loaded for the very first bits. This patch makes it so that the
first
bits happen before loading Test::Builder, then deferring the ok() calls till
this later time.

The original test appeared to have a bug: ok( $@, qr.../ ); which should
probably be a call to like(), my first patch preserved this bug in
entirety, I have included a second patch that fixes that.


[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=library
    severity=medium
    Type=Patch
    PatchStatus=HasPatch
    module=autouse
---
Site configuration information for perl 5.20.0:

Configured by exodist at Mon Jul 14 22:41:35 PDT 2014.

Summary of my perl5 (revision 5 version 20 subversion 0) configuration:

  Platform:
    osname=linux, osvers=3.13.0-24-generic,
archname=x86_64-linux-thread-multi
    uname='linux work 3.13.0-24-generic #47-ubuntu smp fri may 2 23:30:00
utc 2014 x86_64 x86_64 x86_64 gnulinux '
    config_args='-de
-Dprefix=/home/exodist/perl5/perlbrew/perls/test2-5.20.0 -Dusethreads
-Aeval:scriptdir=/home/exodist/perl5/perlbrew/perls/test2-5.20.0/bin'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fwrapv
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.8.2', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed
/usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib
/usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib
    libs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.19'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib
-fstack-protector'


---
@INC for perl 5.20.0:

/home/exodist/perl5/perlbrew/perls/test2-5.20.0/lib/site_perl/5.20.0/x86_64-linux-thread-multi
    /home/exodist/perl5/perlbrew/perls/test2-5.20.0/lib/site_perl/5.20.0

/home/exodist/perl5/perlbrew/perls/test2-5.20.0/lib/5.20.0/x86_64-linux-thread-multi
    /home/exodist/perl5/perlbrew/perls/test2-5.20.0/lib/5.20.0
    .

---
Environment for perl 5.20.0:
    HOME=/home/exodist
    LANG=en_US.UTF-8
    LANGUAGE=en_US
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)

PATH=/home/exodist/perl5/perlbrew/bin:/home/exodist/perl5/perlbrew/perls/test2-5.20.0/bin:/home/exodist/bin:/home/exodist/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
    PERLBREW_BASHRC_VERSION=0.66
    PERLBREW_HOME=/home/exodist/.perlbrew
    PERLBREW_MANPATH=/home/exodist/perl5/perlbrew/perls/test2-5.20.0/man

PERLBREW_PATH=/home/exodist/perl5/perlbrew/bin:/home/exodist/perl5/perlbrew/perls/test2-5.20.0/bin
    PERLBREW_PERL=test2-5.20.0
    PERLBREW_ROOT=/home/exodist/perl5/perlbrew
    PERLBREW_VERSION=0.66
    PERL_BADLANG (unset)
    SHELL=/usr/bin/zsh



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