Skip Menu |

This queue is for tickets about the Test-Output CPAN distribution.

Report information
The Basics
Id: 66172
Status: resolved
Priority: 0/
Queue: Test-Output

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.16_03
Fixed in: (no value)



Subject: Something is setting $\
0.16_03 has an issue where it looks like capturing the output of say() is causing $\ to be set. use v5.10; use Test::More; use Test::Output; is $\, undef; stdout_is { print "foo"; } "foo"; is $\, undef; stdout_is { say "foo"; } "foo\n"; is $\, undef; stdout_is { print "foo"; } "foo"; is $\, undef; done_testing; This demonstrates that capturing a say is causing $\ to be set which effects the later tests. This may be a bug in tie().
Subject: perl_V.txt
Summary of my perl5 (revision 5 version 12 subversion 2) configuration: Commit id: 7a3b65c9d99f69553fffe01f73d49fe9abf95120 Platform: osname=darwin, osvers=10.4.0, archname=darwin-thread-multi-2level uname='darwin windhund.local 10.4.0 darwin kernel version 10.4.0: fri apr 23 18:28:53 pdt 2010; root:xnu-1504.7.4~1release_i386 i386 i386 macbookpro7,1 darwin ' config_args='-des -Dprefix=/Users/schwern/perl5/perlbrew/perls/perl-v5.12.2 -Duseithreads -Duselargefiles -Dperladmin=schwern@pobox.com -Dcf_email=schwern@pobox.com -Dmyhostname=windhund -Dmydomain=.schwern.org' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=define, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/opt/local/include', optimize='-O3', cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/opt/local/include' ccversion='', gccversion='4.2.1 (Apple Inc. build 5664)', 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='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -fstack-protector -L/usr/local/lib -L/opt/local/lib' libpth=/usr/local/lib /opt/local/lib /usr/lib libs=-lgdbm -ldbm -ldl -lm -lutil -lc perllibs=-ldl -lm -lutil -lc libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/usr/local/lib -L/opt/local/lib -fstack-protector' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API Built under darwin Compiled at Sep 28 2010 11:53:44 %ENV: PERL_AUTOINSTALL="--defaultdeps" @INC: /Users/schwern/perl5/perlbrew/perls/perl-v5.12.2/lib/site_perl/5.12.2/darwin-thread-multi-2level /Users/schwern/perl5/perlbrew/perls/perl-v5.12.2/lib/site_perl/5.12.2 /Users/schwern/perl5/perlbrew/perls/perl-v5.12.2/lib/5.12.2/darwin-thread-multi-2level /Users/schwern/perl5/perlbrew/perls/perl-v5.12.2/lib/5.12.2 .
The latest version of Test::Output, which uses Capture::Tiny instead of a tie, appears to fix this problem.