Subject: | Test failure on Windows |
Date: | Sun, 28 Jun 2015 14:27:18 +1000 |
To: | bug-XML-XSH2 [...] rt.cpan.org |
From: | Athanasius <perlmonk.athanasius [...] gmail.com> |
Installing XML::XSH2 v2.1.19 results in failure of test t/01basic.t as
follows:
...
"C:\Perl\Strawberry\strawberry-perl-5.20.2.1-64bit-PDL\perl\bin\perl.exe"
"-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef
*Test::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')"
t/*.t
Warning: Output redirection not supported on Win32 - ignoring pipe!
at line 1, column 9,
Warning: Output redirection not supported on Win32 - ignoring pipe!
at line 1, column 10,
Warning: Output redirection not supported on Win32 - ignoring pipe!
at line 1, column 46,
Warning: Output redirection not supported on Win32 - ignoring pipe!
at line 1, column 33,
Warning: Output redirection not supported on Win32 - ignoring pipe!
at line 1, column 33,
Warning: Output redirection not supported on Win32 - ignoring pipe!
at line 1, column 18,
Warning: Output redirection not supported on Win32 - ignoring pipe!
at line 1, column 9,
Warning: Output redirection not supported on Win32 - ignoring pipe!
at line 1, column 9,
Warning: Output redirection not supported on Win32 - ignoring pipe!
at line 1, column 13,
Warning: Output redirection not supported on Win32 - ignoring pipe!
at line 1, column 10,
Warning: Output redirection not supported on Win32 - ignoring pipe!
at line 1, column 10,
Warning: Output redirection not supported on Win32 - ignoring pipe!
at line 1, column 12,
Warning: Output redirection not supported on Win32 - ignoring pipe!
at line 1, column 18,
Warning: Output redirection not supported on Win32 - ignoring pipe!
at line 2, column 12, offset 31.
Warning: Output redirection not supported on Win32 - ignoring pipe!
at line 3, column 15, offset 47.
Warning: Output redirection not supported on Win32 - ignoring pipe!
at line 4, column 14, offset 62.
Warning: Output redirection not supported on Win32 - ignoring pipe!
at line 2, column 10, offset 11.
t/01basic.t ...........
Failed 1/70 subtests
t/02gdome.t ........... ok
Warning: Output redirection not supported on Win32 - ignoring pipe!
at line 1, column 24,
t/03copy.t ............ ok
t/04flow.t ............ ok
t/05misc.t ............ ok
Warning: Output redirection not supported on Win32 - ignoring pipe!
at line 1, column 42,
t/06wrap.t ............ ok
Warning: Output redirection not supported on Win32 - ignoring pipe!
at line 1, column 47,
t/07functions.t ....... ok
t/08more_functions.t .. ok
Test Summary Report
-------------------
t/01basic.t (Wstat: 0 Tests: 69 Failed: 0)
Parse errors: Tests out of sequence. Found (22) but expected (21)
Tests out of sequence. Found (23) but expected (22)
Tests out of sequence. Found (24) but expected (23)
Tests out of sequence. Found (25) but expected (24)
Tests out of sequence. Found (26) but expected (25)
Displayed the first 5 of 50 TAP syntax errors.
Re-run prove with the -p option to see them all.
Files=8, Tests=389, 9 wallclock secs ( 0.20 usr + 0.05 sys = 0.25
CPU)
Result: FAIL
Failed 1/8 test programs. 0/389 subtests failed.
dmake.exe: Warning: -- Found file corresponding to virtual target
[XSH2.pod].
dmake.exe: Error code 255, while making 'test_dynamic'
-> FAIL Installing XML::XSH2 failed. See
C:\Perl\STRAWB~1\STRAWB~4.1-6\data\.cpanm\work\1435460859.6264\build.log
for details. Retry with --force to force install it.
The error arises because the test for:
! echo -n " sh test: "; echo " (success)";
on line 49 of t/01basic.t causes the result "ok 21" to be appended to
the preceding line, so that it is not seen by the test harness, with
consequent "Tests out of sequence" errors.
Perls tested:
* Strawberry Perl: This is perl 5, version 20, subversion 2 (v5.20.2)
built for MSWin32-x64-multi-thread
* Strawberry Perl: This is perl 5, version 22, subversion 0 (v5.22.0)
built for MSWin32-x64-multi-thread
Platform:
* Windows 8.1 64-bit
* >uname -a
windows32 XXX 2.6.2 9200 i686-pc Intel unknown MinGW
Patch: Removing the "-n" from line 49 fixes the problem:
...
exec ls -l;
--- ! echo -n " sh test: "; echo " (success)";
+++ ! echo " sh test: "; echo " (success)";
$t := clone $scratch;
...
Thanks,
Athanasius