Subject: | failed t tests in Windows |
Windows 10, Strawberry Perl 5.26.1
Several of the subtests in 01_Archive-Extract.t fail. These appear to be the same failures as reported by one of the automated cpan-testers for Perl 5.26.3 (although 5.26.1 passed for whoever ran that one):
Configuring B/BI/BINGOS/Archive-Extract-0.82.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a gmake-style Makefile
Writing Makefile for Archive::Extract
Writing MYMETA.yml and MYMETA.json
BINGOS/Archive-Extract-0.82.tar.gz
C:\Strawberry\perl\bin\perl.exe Makefile.PL -- OK
Running make for B/BI/BINGOS/Archive-Extract-0.82.tar.gz
cp lib/Archive/Extract.pm blib\lib\Archive\Extract.pm
BINGOS/Archive-Extract-0.82.tar.gz
C:\STRAWB~1\c\bin\gmake.exe -- OK
Running make test for BINGOS/Archive-Extract-0.82.tar.gz
"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
t/01_Archive-Extract.t .. # Older versions of Archive::Zip may cause File::Spec warnings
# See bug #19713 in rt.cpan.org. It is safe to ignore them
t/01_Archive-Extract.t .. 1/?
# Failed test 'Found correct output file 'y/z''
# at t/01_Archive-Extract.t line 498.
' got: 'y/z
# expected: 'y/z'
t/01_Archive-Extract.t .. 338/?
# Failed test 'Found correct output file 'y/z''
# at t/01_Archive-Extract.t line 498.
' got: 'y/z
# expected: 'y/z'
# Failed test 'Found correct output file 'a''
# at t/01_Archive-Extract.t line 498.
' got: 'a
# expected: 'a'
# Failed test 'Found correct output file 'a''
# at t/01_Archive-Extract.t line 498.
' got: 'a
# expected: 'a'
t/01_Archive-Extract.t .. 1514/? # Looks like you failed 4 tests of 1524.
t/01_Archive-Extract.t .. Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/1524 subtests
(less 656 skipped subtests: 864 okay)
Test Summary Report
-------------------
t/01_Archive-Extract.t (Wstat: 1024 Tests: 1524 Failed: 4)
Failed tests: 330, 354, 438, 462
Non-zero exit status: 4
Files=1, Tests=1524, 4 wallclock secs ( 0.22 usr + 0.00 sys = 0.22 CPU)
Result: FAIL
Failed 1/1 test programs. 4/1524 subtests failed.
gmake: *** [Makefile:872: test_dynamic] Error 4
Lockfile removed.
BINGOS/Archive-Extract-0.82.tar.gz
C:\STRAWB~1\c\bin\gmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports BINGOS/Archive-Extract-0.82.tar.gz
Stopping: 'install' failed for 'Archive::Extract'.
In the CPAN test, it appears that there may be an extra \n at the end of some 'z' values, while in my installation's tests, it might be a \r (x0D)? I haven't delved into the depths of the code, so I can't tell you if you should be routinely stripping whitespace, or if this indicates a genuine problem with one version of Perl on one OS. Anyway, I hope that gives you a clue where to look.
If you need me to test a debug installation image and report results back to you, please don't hesitate to contact me offline.