Skip Menu |

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

Report information
The Basics
Id: 82970
Status: resolved
Worked: 1 hour (60 min)
Priority: 0/
Queue: Test-WWW-Simple

People
Owner: mcmahon [...] cpan.org
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.34
Fixed in: 0.39



Subject: tests fail and hang on Windows
Windows XP Russian, Strawberry perl 5.14.3, 5.16.1. # Looks like you planned 11 tests but ran 9. t/06liketext.t .... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 2/11 subtests (less 5 skipped subtests: 4 okay) t/06ss_fails.t .... ok "examples" не является внутренней или внешней командой, исполняемой программой или пакетным файлом. # Failed test 'working output as expected' # at t/06ss_works.t line 12. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = '1..4 # ' # Looks like you failed 1 test of 1. t/06ss_works.t .... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests "examples" не является внутренней или внешней командой, исполняемой программой или пакетным файлом. # Failed test 'working output as expected' # at t/07ss_intl.t line 11. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = '1..3 # ' # Looks like you failed 1 test of 1. t/07ss_intl.t ..... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests t/08ss_agent.t .... ok "examples" не является внутренней или внешней командой, исполняемой программой или пакетным файлом. # Failed test 'working output as expected' # at t/09ss_comment.t line 9. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = '1..1 # ' # Looks like you failed 1 test of 1. t/09ss_comment.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests "examples" не является внутренней или внешней командой, исполняемой программой или пакетным файлом. # Failed test 'working output as expected' # at t/10ss_blank.t line 9. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = '1..1 # ' # Looks like you failed 1 test of 1. t/10ss_blank.t .... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests "examples" не является внутренней или внешней командой, исполняемой программой или пакетным файлом. "examples" не является внутренней или внешней командой, исполняемой программой или пакетным файлом. # Failed test 'working output as expected' # at t/11ss_garbage.t line 13. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = '1..1 # ' # Looks like you failed 1 test of 2. t/11ss_garbage.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/2 subtests t/12trim.t ........ ok Unknown agent alias "Farnesworth" at C:\strawberry5143\cpan\build\WWW-Mechanize- Pluggable-1.12-3o0p7k/blib/lib/WWW/Mechanize/Pluggable.pm line 381. t/13ua.t .......... ok t/14cache.t ....... skipped: Piped open not available # Waiting for test webserver to spin up # starting Mojolicious server # Shutting down test webserver # stopping Mojolicious server -- Alexandr Ciornii, http://chorny.net
Same behavior with Strawberry Perl 5.12.3. t/12trim.t ........ ok Unknown agent alias "Farnesworth" at C:\strawberry\cpan\build\WWW-Mechanize-Pluggable-1.12-x9PT4J/blib/lib/WWW/Mechanize/Pluggable.pm line 381. t/13ua.t .......... ok t/14cache.t ....... skipped: Piped open not available # Waiting for test webserver to spin up # starting Mojolicious server # Shutting down test webserver # stopping Mojolicious server
Sorry, my last reply didn't have everything. CPAN.pm: Building M/MC/MCMAHON/Test-WWW-Simple-0.34.tar.gz Warning: Prerequisite 'WWW::Mechanize::Pluggable => 1.07' for 'MCMAHON/Test-WWW- Simple-0.34.tar.gz' already built but the result looks suspicious. Skipping anot her build attempt, to prevent looping endlessly. cp lib/Test/WWW/Simple.pm blib\lib\Test\WWW\Simple.pm (C:\strawberry\c\bin\dmake.EXE exited with 0) CPAN::Reporter: dmake result is 'pass', No errors. MCMAHON/Test-WWW-Simple-0.34.tar.gz C:\strawberry\c\bin\dmake.EXE -- OK Running make test C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/01load.t ........ ok t/02import.t ...... ok t/03like.t ........ ok t/04unlike.t ...... ok t/05a_agent.t ..... ok t/05agent.t ....... ok t/05pod.t ......... skipped: Test::Pod::Coverage required for testing POD covera ge # Looks like you planned 11 tests but ran 9. t/06liketext.t .... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 2/11 subtests (less 5 skipped subtests: 4 okay) t/06ss_fails.t .... ok 'examples' is not recognized as an internal or external command, operable program or batch file. # Failed test 'working output as expected' # at t/06ss_works.t line 12. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = '1..4 # ' # Looks like you failed 1 test of 1. t/06ss_works.t .... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests 'examples' is not recognized as an internal or external command, operable program or batch file. # Failed test 'working output as expected' # at t/07ss_intl.t line 11. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = '1..3 # ' # Looks like you failed 1 test of 1. t/07ss_intl.t ..... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests t/08ss_agent.t .... ok 'examples' is not recognized as an internal or external command, operable program or batch file. # Failed test 'working output as expected' # at t/09ss_comment.t line 9. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = '1..1 # ' # Looks like you failed 1 test of 1. t/09ss_comment.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests 'examples' is not recognized as an internal or external command, operable program or batch file. # Failed test 'working output as expected' # at t/10ss_blank.t line 9. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = '1..1 # ' # Looks like you failed 1 test of 1. t/10ss_blank.t .... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests 'examples' is not recognized as an internal or external command, operable program or batch file. 'examples' is not recognized as an internal or external command, operable program or batch file. # Failed test 'working output as expected' # at t/11ss_garbage.t line 13. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = '1..1 # ' # Looks like you failed 1 test of 2. t/11ss_garbage.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/2 subtests t/12trim.t ........ ok Unknown agent alias "Farnesworth" at C:\strawberry\cpan\build\WWW-Mechanize-Plug gable-1.12-x9PT4J/blib/lib/WWW/Mechanize/Pluggable.pm line 381. t/13ua.t .......... ok t/14cache.t ....... skipped: Piped open not available # Waiting for test webserver to spin up # starting Mojolicious server # Shutting down test webserver # stopping Mojolicious server
Major test update in 0.35/0.36. Please retest and let me know if this is resolved.
On 2018-06-14 20:14:34, MCMAHON wrote: Show quoted text
> Major test update in 0.35/0.36. Please retest and let me know if this > is resolved.
I also encounter hanging tests with the recent Test-WWW-Simple versions. With 0.38: ... # Waiting for test webserver to spin up # Failed test 'Fetch of http://localhost:24662/ failed: 500 Can't connect to localhost:24662 (Verbindung wurde abgelehnt)' # at blib/lib/Test/WWW/Simple.pm line 99. # Failed test 'Fetch of http://localhost:24662/ failed: 500 Can't connect to localhost:24662 (Verbindung wurde abgelehnt)' # at blib/lib/Test/WWW/Simple.pm line 99. # Failed test 'cached from last get [http://localhost:24662/] [/bbbbb/ should match]' # at blib/lib/Test/WWW/Simple.pm line 99. # got: "Can't connect to localhost:24662 (Verbindung wurde"... # length: 173 # doesn't match '(?^:bbbbb)' # Failed test 'still cached [http://localhost:24662/] [/bbbbb/ should match]' # at blib/lib/Test/WWW/Simple.pm line 99. # got: "Can't connect to localhost:24662 (Verbindung wurde"... # length: 173 # doesn't match '(?^:bbbbb)' # Failed test 'Fetch of http://localhost:24662/ failed: 500 Can't connect to localhost:24662 (Verbindung wurde abgelehnt)' # at blib/lib/Test/WWW/Simple.pm line 99. # Failed test 'return to last cached value [http://localhost:24662/] [/ccccc/ should match]' # at blib/lib/Test/WWW/Simple.pm line 99. # got: "Can't connect to localhost:24662 (Verbindung wurde"... # length: 161 # doesn't match '(?^:ccccc)' # Failed test 'Fetch of http://localhost:24662/ failed: 500 Can't connect to localhost:24662 (Verbindung wurde abgelehnt)' # at blib/lib/Test/WWW/Simple.pm line 99. # Looks like you failed 7 tests of 9. # Failed test 'working output as expected' # at t/15ss_cache.t line 58. # Structures begin differing at: # $got->[1] = 'not ok 1 - Fetch of http://localhost:24662/ failed: 500 Can't connect to localhost:24662 (Verbindung wurde abgelehnt) # ' # $expected->[1] = 'ok 1 - initial value OK [http://localhost:24662/] [/aaaaa/ should match] # ' # Shutting down test webserver # Looks like you failed 1 test of 1. *** [test_dynamic] Signal 9 ... (SIGKILL is generated here by a watchdog process)
On Thu Jun 14 20:14:34 2018, MCMAHON wrote: Show quoted text
> Major test update in 0.35/0.36. Please retest and let me know if this > is resolved.
15ss_cache.t still hangs on Windows, but it can be solved by replacing "kill 9,$$" with "exit" -- Alexandr Ciornii, http://chorny.net
Subject: Re: [rt.cpan.org #82970] tests fail and hang on Windows
Date: Sun, 17 Jun 2018 22:23:18 -0700
To: bug-Test-WWW-Simple [...] rt.cpan.org
From: Joe McMahon <joe.mcmahon [...] gmail.com>
Just made this change, will push. On Sat, Jun 16, 2018 at 1:00 PM Alexandr Ciornii via RT < bug-Test-WWW-Simple@rt.cpan.org> wrote: Show quoted text
> Queue: Test-WWW-Simple > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=82970 > > > On Thu Jun 14 20:14:34 2018, MCMAHON wrote:
> > Major test update in 0.35/0.36. Please retest and let me know if this > > is resolved.
> > 15ss_cache.t still hangs on Windows, but it can be solved by replacing > "kill 9,$$" with "exit" > > -- > Alexandr Ciornii, http://chorny.net >
On Mon Jun 18 01:24:05 2018, joe.mcmahon@gmail.com wrote: Show quoted text
> Just made this change, will push.
Also 15ss_cache.t uses File::Temp without requiring it and sometimes it leads to failure and hanging. -- Alexandr Ciornii, http://chorny.net
I've added an explicit invocation of the current Perl with -Iblib/lib to the runs of the example program tests. I think this will fix this problem for you.
0.39 now explicitly invokes the builder Perl with -Iblib/lib. This should fix the errors, I think. Please let me know if there are still problems on Windows.