Subject: | stdout/stderr tests fail in Test::Base 0.50 on Perl 5.6.1 |
These failures happen with Test::Base 0.50 on Perl 5.6.1 built for
sun4-solaris.
I'm looking for a work-around or fix that doesn't require upgrading our
Perl installation (which I don't have direct control over.)
I believe they are related to the same/similar issues reported in CPAN
testers:
http://www.nntp.perl.org/group/perl.cpan.testers/287601
http://www.nntp.perl.org/group/perl.cpan.testers/287600
Probably a problem with filehandles under Perl 5.6.1 / 5.6.2 ?
Some specific failures:
~/.cpan/build/Test-Base-0.50: prove -vl t/eval_all.t
t/eval_all....1..2
hello
baby
hibyenot ok 1
# Failed test in lib/Test/Base.pm at line 323.
# Structures begin differing at:
# $got->[2] = ''
# $expected->[2] = 'hibye'
# Looks like you failed 1 test of 2.
ok 2
dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/2 tests, 50.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/eval_all.t 1 256 2 1 50.00% 1
Failed 1/1 test scripts, 0.00% okay. 1/2 subtests failed, 50.00% okay.
###################################################
~/.cpan/build/Test-Base-0.50: prove -vl t/eval_stderr.t
t/eval_stderr....1..1
You are a foo!
You are 1 2.
# Failed test '
# @@ -1,2 +0,0 @@
# -You are a foo!
# -You are 1 2.
# '
# in t/eval_stderr.t at line 3.
not ok 1 -
# Looks like you failed 1 test of 1.
# @@ -1,2 +0,0 @@
# -You are a foo!
# -You are 1 2.
#
dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/eval_stderr.t 1 256 1 1 100.00% 1
Failed 1/1 test scripts, 0.00% okay. 1/1 subtests failed, 0.00% okay.
####################################################
~/.cpan/build/Test-Base-0.50: prove -vl t/eval_stdout.t
t/eval_stdout....1..1
You are a foo!
You are 1 2.
# Failed test '
# @@ -1,2 +0,0 @@
# -You are a foo!
# -You are 1 2.
# '
# in t/eval_stdout.t at line 3.
not ok 1 -
# Looks like you failed 1 test of 1.
# @@ -1,2 +0,0 @@
# -You are a foo!
# -You are 1 2.
#
dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/eval_stdout.t 1 256 1 1 100.00% 1
Failed 1/1 test scripts, 0.00% okay. 1/1 subtests failed, 0.00% okay.
######################################################
~/.cpan/build/Test-Base-0.50: prove -vl t/tie_output.t
t/tie_output....1..3
Keep out!
The eagle has landed
# Failed test '
# @@ -1,2 +1 @@
# Stuff
# -The eagle has landed
# '
# in t/tie_output.t at line 13.
not ok 1 -
# @@ -1,2 +1 @@
# Stuff
# -The eagle has landed
#
This bird had flown
# Failed test '
# @@ -1,3 +1 @@
# Stuff
# -The eagle has landed
# -This bird had flown
# '
not ok 2 -
# in t/tie_output.t at line 17.
# @@ -1,3 +1 @@
You 'lil rascal...
# Stuff
# -The eagle has landed
# -This bird had flown
#
# Failed test '
# @@ -1,2 +0,0 @@
# -Keep out!
# -You 'lil rascal...
# '
not ok 3 -
# in t/tie_output.t at line 21.
# @@ -1,2 +0,0 @@
# -Keep out!
# -You 'lil rascal...
#
# Looks like you failed 3 tests of 3.
dubious
Test returned status 3 (wstat 768, 0x300)
DIED. FAILED tests 1-3
Failed 3/3 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/tie_output.t 3 768 3 3 100.00% 1-3
Failed 1/1 test scripts, 0.00% okay. 3/3 subtests failed, 0.00% okay.