Skip Menu |

This queue is for tickets about the XML-XSH2 CPAN distribution.

Report information
The Basics
Id: 105541
Status: resolved
Priority: 0/
Queue: XML-XSH2

People
Owner: CHOROBA [...] cpan.org
Requestors: perlmonk.athanasius [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 2.1.21



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
Wouldn't using && instead of ; solve the problem as well, without changing the output? Ch.
Subject: Re: [rt.cpan.org #105541] Test failure on Windows
Date: Mon, 29 Jun 2015 12:38:29 +1000
To: bug-XML-XSH2 [...] rt.cpan.org
From: Athanasius <perlmonk.athanasius [...] gmail.com>
On 29/06/2015 4:43 AM, E. Choroba via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=105541 > > > Wouldn't using && instead of ; solve the problem as well, without changing the output? > > Ch.
Here's the output from running: perl t\01basic.t with 4 versions of line 49: (1)! echo -n " sh test: "; echo " (success)"; (the original line) Output: ok 20 sh test: ; echo (success);ok 21 ok 22 (2) ! echo -n " sh test: " && echo " (success)"; Output: ok 20 sh test: && echo (success);ok 21 ok 22 (3) ! echo " sh test: "; echo " (success)"; Output: ok 20 sh test: ; echo (success); ok 21 ok 22 (4) ! echo " sh test: " && echo " (success)"; Output: ok 20 sh test: && echo (success); ok 21 ok 22 So it appears that repacing ; with && has no effect on this problem. Athanasius
Thanks. It's weird. What kind of shell is it? Can you run system 'cmd1 ; cmd2' with some kind of a separator between the two commands? Thanks Ch. On Sun Jun 28 22:38:46 2015, perlmonk.athanasius@gmail.com wrote: Show quoted text
> > On 29/06/2015 4:43 AM, E. Choroba via RT wrote:
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=105541 > > > > > Wouldn't using && instead of ; solve the problem as well, without > > changing the output? > > > > Ch.
> > Here's the output from running: > > perl t\01basic.t > > with 4 versions of line 49: > > (1)! echo -n " sh test: "; echo " (success)"; (the original line) > > Output: > > ok 20 > sh test: ; echo (success);ok 21 > ok 22 > > (2) ! echo -n " sh test: " && echo " (success)"; > > Output: > > ok 20 > sh test: && echo (success);ok 21 > ok 22 > > (3) ! echo " sh test: "; echo " (success)"; > > Output: > > ok 20 > sh test: ; echo (success); > ok 21 > ok 22 > > (4) ! echo " sh test: " && echo " (success)"; > > Output: > > ok 20 > sh test: && echo (success); > ok 21 > ok 22 > > So it appears that repacing ; with && has no effect on this problem. > > Athanasius
Subject: Re: [rt.cpan.org #105541] Test failure on Windows
Date: Wed, 01 Jul 2015 22:50:25 +1000
To: bug-XML-XSH2 [...] rt.cpan.org
From: Athanasius <perlmonk.athanasius [...] gmail.com>
On 1/07/2015 9:44 AM, E. Choroba via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=105541 > > > Thanks. It's weird. What kind of shell is it? Can you run system 'cmd1 ; cmd2' with some kind of a separator between the two commands?
I'm running in the standard DOS command window that comes with Windows 8.1. But I've also tried running under Windows PowerShell, with the same results. The preferred separator would seem to be a single '&'. The strange thing is that the 'echo' command doesn't recognise the '-n' option when it's run directly from either a DOS command window or PowerShell. But it does recognise that option when run from t\01basic.t. Athanasius
What do you get from the following? use Config; print $Config{sh}; On Wed Jul 01 08:50:47 2015, perlmonk.athanasius@gmail.com wrote: Show quoted text
> On 1/07/2015 9:44 AM, E. Choroba via RT wrote:
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=105541 > > > > > Thanks. It's weird. What kind of shell is it? Can you run system > > 'cmd1 ; cmd2' with some kind of a separator between the two commands?
> > I'm running in the standard DOS command window that comes with Windows > 8.1. But I've also tried running under Windows PowerShell, with the > same > results. > > The preferred separator would seem to be a single '&'. > > The strange thing is that the 'echo' command doesn't recognise the '- > n' > option when it's run directly from either a DOS command window or > PowerShell. But it does recognise that option when run from > t\01basic.t. > > Athanasius
Subject: Re: [rt.cpan.org #105541] Test failure on Windows
Date: Thu, 23 Jul 2015 12:48:12 +1000
To: bug-XML-XSH2 [...] rt.cpan.org
From: Athanasius <perlmonk.athanasius [...] gmail.com>
12:47 >perl -MConfig -wE "say $Config{sh};" cmd /x /c 12:47 > On 23/07/2015 9:17 AM, E. Choroba via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=105541 > > > What do you get from the following? > > use Config; print $Config{sh}; > > On Wed Jul 01 08:50:47 2015, perlmonk.athanasius@gmail.com wrote:
>> On 1/07/2015 9:44 AM, E. Choroba via RT wrote:
>>> <URL: https://rt.cpan.org/Ticket/Display.html?id=105541 > >>> >>> Thanks. It's weird. What kind of shell is it? Can you run system >>> 'cmd1 ; cmd2' with some kind of a separator between the two commands?
>> I'm running in the standard DOS command window that comes with Windows >> 8.1. But I've also tried running under Windows PowerShell, with the >> same >> results. >> >> The preferred separator would seem to be a single '&'. >> >> The strange thing is that the 'echo' command doesn't recognise the '- >> n' >> option when it's run directly from either a DOS command window or >> PowerShell. But it does recognise that option when run from >> t\01basic.t. >> >> Athanasius
> >
Please try 2.1.20 once it reaches your CPAN mirror. Ch.
Subject: Re: [rt.cpan.org #105541] Test failure on Windows
Date: Sat, 19 Sep 2015 13:18:17 +1000
To: bug-XML-XSH2 [...] rt.cpan.org
From: Athanasius <perlmonk.athanasius [...] gmail.com>
Unfortunately, there is no change with v2.1.20. :-( t/01basic.t still fails in the same way under cpan or cpanm.Specifically, changing line 49 to: ! echo -n " sh test: " & echo " (success)"; ^ produces this test output: ok 20 sh test: & echo (success);ok 21 ok 22 which causes a series of "Tests out of sequence." errors. As previously noted, removing the -n from the echo does fix the problem on Windows (DOS or PowerShell). Cheers, Athanasius On 19/09/2015 6:15 AM, E. Choroba via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=105541 > > > Please try 2.1.20 once it reaches your CPAN mirror. > > Ch.
Would appending >&2 help then? ! echo -n " sh test: " ; echo " (success)"; >&2 Thanks Ch. On Fri Sep 18 23:18:45 2015, perlmonk.athanasius@gmail.com wrote: Show quoted text
> Unfortunately, there is no change with v2.1.20. :-( > > t/01basic.t still fails in the same way under cpan or > cpanm.Specifically, changing line 49 to: > > ! echo -n " sh test: " & echo " (success)"; > ^ > > produces this test output: > > ok 20 > sh test: & echo (success);ok 21 > ok 22 > > which causes a series of "Tests out of sequence." errors. > > As previously noted, removing the -n from the echo does fix the problem > on Windows (DOS or PowerShell). > > Cheers, > Athanasius > > > On 19/09/2015 6:15 AM, E. Choroba via RT wrote:
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=105541 > > > > > Please try 2.1.20 once it reaches your CPAN mirror. > > > > Ch.
>
Subject: Re: [rt.cpan.org #105541] Test failure on Windows
Date: Sun, 20 Sep 2015 12:51:21 +1000
To: bug-XML-XSH2 [...] rt.cpan.org
From: Athanasius <perlmonk.athanasius [...] gmail.com>
Yes, success! With >&2 appended to line 49, "perl t\01basic.t" now produces: ... ok 20 -n " sh test: " ; echo " (success)"; ok 21 ok 22 ... and then "cpan> install ." successfully installs XML::XSH2 2.1.20. Cheers, Athanasius On 20/09/2015 6:11 AM, E. Choroba via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=105541 > > > Would appending >&2 help then? > > ! echo -n " sh test: " ; echo " (success)"; >&2 > > Thanks > > Ch. > > On Fri Sep 18 23:18:45 2015, perlmonk.athanasius@gmail.com wrote:
>> Unfortunately, there is no change with v2.1.20. :-( >> >> t/01basic.t still fails in the same way under cpan or >> cpanm.Specifically, changing line 49 to: >> >> ! echo -n " sh test: " & echo " (success)"; >> ^ >> >> produces this test output: >> >> ok 20 >> sh test: & echo (success);ok 21 >> ok 22 >> >> which causes a series of "Tests out of sequence." errors. >> >> As previously noted, removing the -n from the echo does fix the problem >> on Windows (DOS or PowerShell). >> >> Cheers, >> Athanasius >> >> >> On 19/09/2015 6:15 AM, E. Choroba via RT wrote:
>>> <URL: https://rt.cpan.org/Ticket/Display.html?id=105541 > >>> >>> Please try 2.1.20 once it reaches your CPAN mirror. >>> >>> Ch.
> >
On Sat Sep 19 22:51:49 2015, perlmonk.athanasius@gmail.com wrote: Show quoted text
> Yes, success! With >&2 appended to line 49, "perl t\01basic.t" now produces: > > ... > ok 20 > -n " sh test: " ; echo " (success)"; > ok 21 > ok 22 > ... > > and then "cpan> install ." successfully installs XML::XSH2 2.1.20. > > Cheers, > Athanasius > > > On 20/09/2015 6:11 AM, E. Choroba via RT wrote:
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=105541 > > > > > Would appending >&2 help then? > > > > ! echo -n " sh test: " ; echo " (success)"; >&2 > > > > Thanks > > > > Ch. > > > > On Fri Sep 18 23:18:45 2015, perlmonk.athanasius@gmail.com wrote:
> >> Unfortunately, there is no change with v2.1.20. :-( > >> > >> t/01basic.t still fails in the same way under cpan or > >> cpanm.Specifically, changing line 49 to: > >> > >> ! echo -n " sh test: " & echo " (success)"; > >> ^ > >> > >> produces this test output: > >> > >> ok 20 > >> sh test: & echo (success);ok 21 > >> ok 22 > >> > >> which causes a series of "Tests out of sequence." errors. > >> > >> As previously noted, removing the -n from the echo does fix the problem > >> on Windows (DOS or PowerShell). > >> > >> Cheers, > >> Athanasius > >> > >> > >> On 19/09/2015 6:15 AM, E. Choroba via RT wrote:
> >>> <URL: https://rt.cpan.org/Ticket/Display.html?id=105541 > > >>> > >>> Please try 2.1.20 once it reaches your CPAN mirror. > >>> > >>> Ch.
> > > >
>