develooper Front page | perl.perl5.porters | Postings from September 2013

[perl #119619] Contradictory advice and test on using Test::More

Thread Previous
From:
Smylers
Date:
September 5, 2013 11:45
Subject:
[perl #119619] Contradictory advice and test on using Test::More
Message ID:
rt-3.6.HEAD-1873-1378381495-787.119619-75-0@perl.org
# New Ticket Created by  Smylers 
# Please include the string:  [perl #119619]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=119619 >



This is a bug report for perl from smylers@stripey.com,
generated with the help of perlbug 1.39 running under perl 5.19.4.


-----------------------------------------------------------------

perlhack, in its TESTING section, says that tests other than in specific
subdirectories should use Test::More (rather than t/test.pl).

But t/porting/test_bootstrap.t specifically tests that no t/**.t files
use Test::More — adding the line:

  use Test::More;

into a test in t/porting/ (not one of the directories perlhack mentions
as requiring ad-hoc testing or test.pl) makes test_bootstrap.t fail.

These obviously contradict each other, and I don't know what should be
used for a new test in t/porting/.

Either test_bootstrap.t needs restricting to the directories mentioned
in perlhack, or the advice in perlhack needs changing to say never to
use Test::More.

-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---
Site configuration information for perl 5.19.4:

Configured by smylers at Tue Sep  3 10:58:31 BST 2013.

Summary of my perl5 (revision 5 version 19 subversion 4) configuration:
  Commit id: 5565c73819a0eed045991803240cb7122b86b800
  Platform:
    osname=linux, osvers=3.8.0-30-generic, archname=x86_64-linux
    uname='linux fozzie 3.8.0-30-generic #44-ubuntu smp thu aug 22 20:52:24 utc 2013 x86_64 x86_64 x86_64 gnulinux '
    config_args='-des -Dusedevel'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.7.3', 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 /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/lib
    libs=-lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.17'
  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.19.4:
    lib
    /home/smylers/lib/perl5/site_perl
    /home/smylers/lib/perl5
    /usr/local/lib/perl5/site_perl/5.19.4/x86_64-linux
    /usr/local/lib/perl5/site_perl/5.19.4
    /usr/local/lib/perl5/5.19.4/x86_64-linux
    /usr/local/lib/perl5/5.19.4
    .

---
Environment for perl 5.19.4:
    HOME=/home/smylers
    LANG=en_GB.utf8
    LANGUAGE=en_GB:en
    LC_COLLATE=C
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/smylers/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/games
    PERL5LIB=/home/smylers/lib/perl5/site_perl:/home/smylers/lib/perl5
    PERL_BADLANG (unset)
    PERL_CPANM_OPT=--sudo --prompt
    SHELL=/bin/bash


Thread Previous


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