Skip Menu |

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

Report information
The Basics
Id: 100489
Status: resolved
Priority: 0/
Queue: Test-HexDifferences

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

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



Subject: Test failure with perl 5.21.6
12_dumped_eq_dump_or_diff.t fails with perl 5.21.6. With perl 5.21.5 the test suite runs fine, so this may or may not be a regression in perl itself: # Failed test 'subtest 'expected undef' of '' compare diag' # at t/12_dumped_eq_dump_or_diff.t line 37. # Got diag (282 bytes): # '+---+-------------------------+---+----------+' # '| Ln|Got | Ln|Expected |' # '+---+-------------------------+---+----------+' # '* 1|'0000 : 31 : 1 * 1|undef *' # '* 2|' * | |' # '+---+-------------------------+---+----------+' # Expected diag (294 bytes): # '+---+---------------------------+---+----------+' # '| Ln|Got | Ln|Expected |' # '+---+---------------------------+---+----------+' # '* 1|'0000 : 31 : 1\n * 1|undef *' # '* 2|' * | |' # '+---+---------------------------+---+----------+' # Looks like you failed 1 test of 30. t/12_dumped_eq_dump_or_diff.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/30 subtests
On Fri Nov 21 02:47:30 2014, SREZIC wrote: Show quoted text
> 12_dumped_eq_dump_or_diff.t fails with perl 5.21.6. With perl 5.21.5 > the test suite runs fine, so this may or may not be a regression in > perl itself: > > # Failed test 'subtest 'expected undef' of '' compare diag' > # at t/12_dumped_eq_dump_or_diff.t line 37. > # Got diag (282 bytes): > # '+---+-------------------------+---+----------+' > # '| Ln|Got | Ln|Expected |' > # '+---+-------------------------+---+----------+' > # '* 1|'0000 : 31 : 1 * 1|undef *' > # '* 2|' * | |' > # '+---+-------------------------+---+----------+' > # Expected diag (294 bytes): > # '+---+---------------------------+---+----------+' > # '| Ln|Got | Ln|Expected |' > # '+---+---------------------------+---+----------+' > # '* 1|'0000 : 31 : 1\n * 1|undef *' > # '* 2|' * | |' > # '+---+---------------------------+---+----------+' > # Looks like you failed 1 test of 30. > t/12_dumped_eq_dump_or_diff.t .. > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/30 subtests
This broke some time after v5.21.5-539-g6dfba0a. A binary search would help.
Is this not just due to DCANTRELL/Test-Differences-0.63.tar.gz ?
On Sun Nov 23 13:10:54 2014, ANDK wrote: Show quoted text
> Is this not just due to DCANTRELL/Test-Differences-0.63.tar.gz ?
How insightful! Indeed, the tests pass if I use DCANTRELL/Test-Differences-0.62.tar.gz.
I'm inclined to say that this is Test::HexDifferences being too fussy. I don't think it's appropriate to rely so exactly on the diagnostic output from testing code. That output (and the change in Test::Differences 0.63) is designed to make the output useful to humans, not to computers. Test::HexDifferences should probably be using Text::Diff directly instead of wrapping Test::Differences.
Thank you for the good hints, what's the problem and how to fix. Solved in version 0.009 Renewed with Test::Diff and without Test::Differences in 1.000