Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the IO-CaptureOutput CPAN distribution.

Report information
The Basics
Id: 71775
Status: resolved
Priority: 0/
Queue: IO-CaptureOutput

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

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: t/capture.t doesn't handle the case of a non-threaded Win32 build of perl.
t/capture.t doesn't handle the case of a non-threaded Win32 build of perl. Since fork isn't available, the test aborts after test 17: C:\Users\tony\.cpan\build\IO-CaptureOutput-1.1102-rchELC>nmake test TEST_FILES=t /capture.t TEST_VERBOSE=1 Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved. C:\perl-5.14.1\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness (1, 'blib\lib', 'blib\arch')" t/capture.t t/capture.t .. 1..21 ok 1 - captured stdout from perl function ok 2 - captured stderr from perl function ok 3 - captured stdout into one scalar ok 4 - captured stderr into same scalar ok 5 - stdout passed through to outer capture ok 6 - captured stderr in inner ok 7 - outer stderr empty ok 8 - captured stdout in inner ok 9 - stderr passed through to outer capture ok 10 - outer stdout empty ok 11 - capture() proxies the return values ok 12 - capture() calls subroutine in scalar context when appropriate ok 13 - capture() calls subroutine in list context when appropriate ok 14 - capture() calls subroutine in void context when appropriate ok 15 - capture() caught stdout from external command ok 16 - $@ still available after capture ok 17 - capture() still populates output and error variables if the code dies # Looks like you planned 21 tests but ran 17. # Looks like your test exited with 25 just after 17. Dubious, test returned 25 (wstat 6400, 0x1900) Failed 4/21 subtests Test Summary Report ------------------- t/capture.t (Wstat: 6400 Tests: 17 Failed: 0) Non-zero exit status: 25 Parse errors: Bad plan. You planned 21 tests but ran 17. Files=1, Tests=17, 1 wallclock secs ( 0.16 usr + 0.00 sys = 0.16 CPU) Result: FAIL Failed 1/1 test programs. 0/17 subtests failed. NMAKE : fatal error U1077: 'C:\perl-5.14.1\bin\perl.exe' : return code '0x19' Stop. C:\Users\tony\.cpan\build\IO-CaptureOutput-1.1102-rchELC>perl -V:d_fork d_fork='undef'; C:\Users\tony\.cpan\build\IO-CaptureOutput-1.1102-rchELC>perl -V:useithreads useithreads='undef'; C:\Users\tony\.cpan\build\IO-CaptureOutput-1.1102-rchELC>perl -V Summary of my perl5 (revision 5 version 14 subversion 1) configuration: Derived from: cc92ef02098c000d945bcf93c92bdb2a0a05fa97 Platform: osname=MSWin32, osvers=6.1, archname=MSWin32-x86-multi uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef useithreads=undef, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cl', ccflags ='-nologo -GF -W3 -Od -MD -Zi -DDEBUGGING -DWIN32 -D_CONSOL E -DNO_STRICT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DPERL_TEX TMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO', optimize='-Od -MD -Zi -DDEBUGGING', cppflags='-DWIN32' ccversion='15.00.30729.01', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64', lseeksi ze=8 alignbytes=8, prototype=define Linker and Libraries: ld='link', ldflags ='-nologo -nodefaultlib -debug -libpath:"c:\perl-5.14.1\ lib\CORE" -machine:x86 "/manifestdependency:type='Win32' name='Microsoft.Window s.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6 595b64144ccf1df' language='*'"' libpth=\lib libs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.l ib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib ws2_32 .lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl32.lib msvcrt. lib perllibs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg 32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib ws 2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl32.lib msv crt.lib libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl514.lib gnulibc_version='' Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug -libpath:"c:\p erl-5.14.1\lib\CORE" -machine:x86 "/manifestdependency:type='Win32' name='Micro soft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' public KeyToken='6595b64144ccf1df' language='*'"' Characteristics of this binary (from libperl): Compile-time options: DEBUGGING MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS PERL_MALLOC_WRAP PERL_PRESERVE_IVUV PERL_TRACK_MEMPOOL PL_OP_SLAB_ALLOC USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF Locally applied patches: uncommitted-changes Built under MSWin32 Compiled at Oct 15 2011 12:15:11 %ENV: PERL5_CPANPLUS_IS_RUNNING="10196" PERL5_CPAN_IS_RUNNING="10196" @INC: c:/perl-5.14.1/site/lib c:/perl-5.14.1/lib .
Subject: Re: [rt.cpan.org #71775] t/capture.t doesn't handle the case of a non-threaded Win32 build of perl.
Date: Wed, 19 Oct 2011 08:52:53 -0400
To: bug-IO-CaptureOutput [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
On Wed, Oct 19, 2011 at 8:07 AM, TONYC via RT <bug-IO-CaptureOutput@rt.cpan.org> wrote: Show quoted text
> t/capture.t doesn't handle the case of a non-threaded Win32 build of perl.
Thank you for the report. I'm not sure when I'll be doing another release but it's good to know so that I can skip tests in that case. -- David
Fixed in the repo