dagolden / Capture-Tiny

(Perl) Capture STDOUT and STDERR from Perl, XS or external programs
http://search.cpan.org/dist/Capture-Tiny/
39 stars 19 forks source link

Tests fail with current 5.20-main (MSWin32) #29

Open kmx opened 9 years ago

kmx commented 9 years ago

Hi David,

while preparing the next strawberry perl release I have run into the following failure with current 5.20-maint:

Building and testing Capture-Tiny-0.27 ... cp lib/Capture/Tiny.pm blib\lib\Capture\Tiny.pm
"C:\strawberry\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')" t/*.t
# 
# Versions for all modules listed in MYMETA.json (including optional ones):
# 
# === Configure Requires ===
# 
#     Module              Want Have
#     ------------------- ---- ----
#     ExtUtils::MakeMaker 6.17 7.04
# 
# === Build Requires ===
# 
#     Module              Want Have
#     ------------------- ---- ----
#     ExtUtils::MakeMaker  any 7.04
# 
# === Test Requires ===
# 
#     Module              Want     Have
#     ------------------- ---- --------
#     ExtUtils::MakeMaker  any     7.04
#     File::Spec           any  3.48_01
#     IO::File             any     1.16
#     Test::More          0.62 1.001014
#     lib                  any     0.63
# 
# === Test Recommends ===
# 
#     Module         Want     Have
#     ---------- -------- --------
#     CPAN::Meta 2.120900 2.143240
#     Inline::C      0.50  missing
# 
# === Runtime Requires ===
# 
#     Module         Want    Have
#     -------------- ---- -------
#     Carp            any  1.3301
#     Exporter        any    5.71
#     File::Spec      any 3.48_01
#     File::Temp      any  0.2304
#     IO::Handle      any    1.35
#     Scalar::Util    any    1.41
#     Win32API::File  any  0.1201
#     strict          any    1.08
#     warnings        any    1.23
# 
t/00-report-prereqs.t ...... ok
t/01-Capture-Tiny.t ........ ok
t/02-capture.t ............. ok
t/03-tee.t ................. ok
t/06-stdout-closed.t ....... ok
t/07-stderr-closed.t ....... ok
t/08-stdin-closed.t ........ ok
t/09-preserve-exit-code.t .. ok
t/10-stdout-string.t ....... ok
t/11-stderr-string.t ....... ok
t/12-stdin-string.t ........ ok
t/13-stdout-tied.t ......... ok
t/14-stderr-tied.t ......... ok

#   Failed test 'tee_merged|perl|both|multiline - tee STDOUT (STDOUT)'
#   at t/lib/Cases.pm line 240.
#                   'STDERR:First line
# Second line
# '
#     doesn't match '(?^:STDOUT\:First\ line\
# Second\ line\
# )'
# Looks like you failed 1 test of 873.
t/15-stdin-tied.t .......... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/873 subtests 
t/16-catch-errors.t ........ ok
t/17-pass-results.t ........ ok
t/18-custom-capture.t ...... ok
t/19-inline-c.t ............ skipped: Inline::C module required
t/20-stdout-badtie.t ....... ok
t/21-stderr-badtie.t ....... ok
t/22-stdin-badtie.t ........ ok
t/23-all-tied.t ............ ok
t/24-all-badtied.t ......... ok

Test Summary Report
-------------------
t/15-stdin-tied.t        (Wstat: 256 Tests: 873 Failed: 1)
  Failed test:  809
  Non-zero exit status: 1
Files=23, Tests=11996, 217 wallclock secs ( 4.19 usr +  0.45 sys =  4.64 CPU)
Result: FAIL
Failed 1/23 test programs. 1/11996 subtests failed.

Interesting is that couple of days ago it worked fine; so it might be some change in some of the deps or something else outside Capture-Tiny.

kmx

dagolden commented 9 years ago

I've been getting sporadic failures along those lines that I haven't been successful in tracking down yet.

It's possible that I may have to declare tied STDIN a non-supported configuration. :-(

David

On Tue, Jan 20, 2015 at 9:47 AM, kmx notifications@github.com wrote:

Hi David,

while preparing the next strawberry perl release I have run into the following failure with current 5.20-maint:

Building and testing Capture-Tiny-0.27 ... cp lib/Capture/Tiny.pm blib\lib\Capture\Tiny.pm "C:\strawberry\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef _Test::Harness::Switches; testharness(0, 'blib\lib', 'blib\arch')" t/.t #

Versions for all modules listed in MYMETA.json (including optional ones):

#

=== Configure Requires ===

#

Module Want Have

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

ExtUtils::MakeMaker 6.17 7.04

#

=== Build Requires ===

#

Module Want Have

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

ExtUtils::MakeMaker any 7.04

#

=== Test Requires ===

#

Module Want Have

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

ExtUtils::MakeMaker any 7.04

File::Spec any 3.48_01

IO::File any 1.16

Test::More 0.62 1.001014

lib any 0.63

#

=== Test Recommends ===

#

Module Want Have

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

CPAN::Meta 2.120900 2.143240

Inline::C 0.50 missing

#

=== Runtime Requires ===

#

Module Want Have

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

Carp any 1.3301

Exporter any 5.71

File::Spec any 3.48_01

File::Temp any 0.2304

IO::Handle any 1.35

Scalar::Util any 1.41

Win32API::File any 0.1201

strict any 1.08

warnings any 1.23

# t/00-report-prereqs.t ...... ok t/01-Capture-Tiny.t ........ ok t/02-capture.t ............. ok t/03-tee.t ................. ok t/06-stdout-closed.t ....... ok t/07-stderr-closed.t ....... ok t/08-stdin-closed.t ........ ok t/09-preserve-exit-code.t .. ok t/10-stdout-string.t ....... ok t/11-stderr-string.t ....... ok t/12-stdin-string.t ........ ok t/13-stdout-tied.t ......... ok t/14-stderr-tied.t ......... ok

Failed test 'tee_merged|perl|both|multiline - tee STDOUT (STDOUT)'

at t/lib/Cases.pm line 240.

'STDERR:First line

Second line

'

doesn't match '(?^:STDOUT:First\ line\

Second\ line\

)'

Looks like you failed 1 test of 873.

t/15-stdin-tied.t .......... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/873 subtests t/16-catch-errors.t ........ ok t/17-pass-results.t ........ ok t/18-custom-capture.t ...... ok t/19-inline-c.t ............ skipped: Inline::C module required t/20-stdout-badtie.t ....... ok t/21-stderr-badtie.t ....... ok t/22-stdin-badtie.t ........ ok t/23-all-tied.t ............ ok t/24-all-badtied.t ......... ok

Test Summary Report

t/15-stdin-tied.t (Wstat: 256 Tests: 873 Failed: 1) Failed test: 809 Non-zero exit status: 1 Files=23, Tests=11996, 217 wallclock secs ( 4.19 usr + 0.45 sys = 4.64 CPU) Result: FAIL Failed 1/23 test programs. 1/11996 subtests failed.

Interesting is that couple of days ago it worked fine; so it might be some change in some of the deps or something else outside Capture-Tiny.

kmx

— Reply to this email directly or view it on GitHub https://github.com/dagolden/Capture-Tiny/issues/29.

David Golden xdg@xdg.me Twitter/IRC: @xdg

plicease commented 8 years ago

I got this failure on MSYS2 from the version on CPAN, but it tested fine and installed for the version in git. Has this been fixed in the repository? Or was I just lucky?

xdg commented 8 years ago

Possibly just lucky. :-/