Skip Menu |

This queue is for tickets about the Async-Simple-Pool CPAN distribution.

Report information
The Basics
Id: 122747
Status: open
Priority: 0/
Queue: Async-Simple-Pool

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

Bug Information
Severity: Important
Broken in: 0.13
Fixed in: (no value)



Subject: 06-task-forktmpfile.t hangs on Windows
1..18 ok 1 - 'successful init' isa 'Async::Simple::Task::ForkTmpFile' ok 2 - 'have a reader' isa 'GLOB' ok 3 - 'have a writer' isa 'GLOB' ok 4 - 'task exists and is a CODE' isa 'CODE' ok 5 - default timeout ok 6 - id found ok 7 - fork done, pid setted ok 8 - default kill_on_exit ok 9 - kid is active ok 10 - kid closed ok 11 - timeout setted ok ok 12 - kill_on_exit setted ok ok 13 - An object of class 'Data::Serializer' isa 'Data::Serializer' ok 14 - kid doing his timeout not ok 15 - result ok # Failed test 'result ok' # at t/06-task-forktmpfile.t line 79. # got: undef # expected: '110' not ok 16 - kid did his job for scalar # Failed test 'kid did his job for scalar' # at t/06-task-forktmpfile.t line 91. # got: undef # expected: '112' not ok 17 - kid did his job for hash # Failed test 'kid did his job for hash' # at t/06-task-forktmpfile.t line 99. # Structures begin differing at: # $got = undef # $expected = HASH(0x2680244) not ok 18 - kid did his job for array # Failed test 'kid did his job for array' # at t/06-task-forktmpfile.t line 107. # Structures begin differing at: # $got = undef # $expected = ARRAY(0x2680794) # Looks like you failed 4 tests of 18. (hangs) -- Alexandr Ciornii, http://chorny.net
Thank you for report! I'v found the reason of this bug. I'll try to fix it in next revision. Втр Авг 08 16:48:14 2017, CHORNY писал: Show quoted text
> 1..18 > ok 1 - 'successful init' isa 'Async::Simple::Task::ForkTmpFile' > ok 2 - 'have a reader' isa 'GLOB' > ok 3 - 'have a writer' isa 'GLOB' > ok 4 - 'task exists and is a CODE' isa 'CODE' > ok 5 - default timeout > ok 6 - id found > ok 7 - fork done, pid setted > ok 8 - default kill_on_exit > ok 9 - kid is active > ok 10 - kid closed > ok 11 - timeout setted ok > ok 12 - kill_on_exit setted ok > ok 13 - An object of class 'Data::Serializer' isa 'Data::Serializer' > ok 14 - kid doing his timeout > not ok 15 - result ok > # Failed test 'result ok' > # at t/06-task-forktmpfile.t line 79. > # got: undef > # expected: '110' > not ok 16 - kid did his job for scalar > # Failed test 'kid did his job for scalar' > # at t/06-task-forktmpfile.t line 91. > # got: undef > # expected: '112' > not ok 17 - kid did his job for hash > # Failed test 'kid did his job for hash' > # at t/06-task-forktmpfile.t line 99. > # Structures begin differing at: > # $got = undef > # $expected = HASH(0x2680244) > not ok 18 - kid did his job for array > # Failed test 'kid did his job for array' > # at t/06-task-forktmpfile.t line 107. > # Structures begin differing at: > # $got = undef > # $expected = ARRAY(0x2680794) > # Looks like you failed 4 tests of 18. > (hangs) >
I hope that this issue fixed since v0.14. Please let me know if the problem still exists. Thank you!
On Thu Sep 21 13:21:31 2017, ANTONC wrote: Show quoted text
> I hope that this issue fixed since v0.14. > Please let me know if the problem still exists.
07-pool.t also has hangs in 0.15. 1..74 ok 1 - all params are optional ok 2 - 'successful init' isa 'Async::Simple::Pool' ok 3 - simplest pool has been created ok 4 - An object of class 'Async::Simple::Pool' isa 'Async::Simple::Pool' ok 5 - 'task list is list' isa 'ARRAY' ok 6 - default task count ok 7 - we flush_data by default ok 8 - default result type ok 9 - default break on done ok 10 - default task class is Async::Simple::Task::ForkTmpFile ok 11 - default data is undef ok 12 - default task params say() on closed filehandle $fh at C:\Strawberry240\cpan\build\Async-Simple-Pool-0.15-0\blib\lib/Async/Simple/Task/ForkTmpFile.pm line 325. say() on closed filehandle $fh at C:\Strawberry240\cpan\build\Async-Simple-Pool-0.15-0\blib\lib/Async/Simple/Task/ForkTmpFile.pm line 325. say() on closed filehandle $fh at C:\Strawberry240\cpan\build\Async-Simple-Pool-0.15-0\blib\lib/Async/Simple/Task/ForkTmpFile.pm line 325. say() on closed filehandle $fh at C:\Strawberry240\cpan\build\Async-Simple-Pool-0.15-0\blib\lib/Async/Simple/Task/ForkTmpFile.pm line 325. say() on closed filehandle $fh at C:\Strawberry240\cpan\build\Async-Simple-Pool-0.15-0\blib\lib/Async/Simple/Task/ForkTmpFile.pm line 325. say() on closed filehandle $fh at C:\Strawberry240\cpan\build\Async-Simple-Pool-0.15-0\blib\lib/Async/Simple/Task/ForkTmpFile.pm line 325. say() on closed filehandle $fh at C:\Strawberry240\cpan\build\Async-Simple-Pool-0.15-0\blib\lib/Async/Simple/Task/ForkTmpFile.pm line 325. say() on closed filehandle $fh at C:\Strawberry240\cpan\build\Async-Simple-Pool-0.15-0\blib\lib/Async/Simple/Task/ForkTmpFile.pm line 325. say() on closed filehandle $fh at C:\Strawberry240\cpan\build\Async-Simple-Pool-0.15-0\blib\lib/Async/Simple/Task/ForkTmpFile.pm line 325. say() on closed filehandle $fh at C:\Strawberry240\cpan\build\Async-Simple-Pool-0.15-0\blib\lib/Async/Simple/Task/ForkTmpFile.pm line 325. (hangs) -- Alexandr Ciornii, http://chorny.net
Hello! As i can see, this issue has been partically fixed. But i also see another problem: http://www.cpantesters.org/cpan/report/9bbe23d7-6bf3-1014-9f73-570a801663f6 Could you give me verbose output of this fail, please?
On Thu Sep 28 07:00:08 2017, ANTONC wrote: Show quoted text
> Hello! > > As i can see, this issue has been partically fixed. > But i also see another problem: > http://www.cpantesters.org/cpan/report/9bbe23d7-6bf3-1014-9f73-570a801663f6 > > Could you give me verbose output of this fail, please?
# Failed test 'planned to run 1 but done_testing() expects 0' # at C:/strawberry182/perl/site/lib/Test/Spec.pm line 163. # Looks like you failed 1 test of 1. t/05-task-fork.t ..................... 1..1 not ok 1 - planned to run 1 but done_testing() expects 0 Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests t/06-task-forktmpfile.t .............. 1..21 ok 1 - 'successful init.' isa 'Async::Simple::Task::ForkTmpFile' ok 2 - have scalar reader=\tmp\_pr_tmp_Zp9TfwUR0oU78ZGbpRNmlsmndcvZzpjtGFenCTwovJKUilSXKtZ7aB58gfgUQ8hi ok 3 - have scalar writer=\tmp\_pw_tmp_EE02Kkj5lJY7yB4d9GvabfIW1V9SmPo3VCvy3PNj1V88tqtxuwgfPCNH2aYwzivk ok 4 - 'task exists and is a CODE' isa 'CODE' ok 5 - default timeout ok 6 - id found ok 7 - fork done, pid setted ok 8 - default kill_on_exit ok 9 - tmp directory exists:\tmp ok 10 - tmp dir is writable\tmp ok 11 - kid is active ok 12 - kid closed ok 13 - timeout setted ok 14 - tmpdir setted to user`s ok 15 - kill_on_exit setted ok 16 - An object of class 'Data::Serializer' isa 'Data::Serializer' ok 17 - kid doing his timeout ok 18 - result ok ok 19 - kid did his job for scalar ok 20 - kid did his job for hash ok 21 - kid did his job for array ok # Failed test 'planned to run 37 but done_testing() expects 2' # at C:/strawberry182/perl/site/lib/Test/Spec.pm line 163. # Looks like you planned 37 tests but ran 3. # Looks like you failed 1 test of 3 run. t/07-pool-inits.t .................... 1..37 ok 1 - all params are optional ok 2 - 'successful init' isa 'Async::Simple::Pool' not ok 3 - planned to run 37 but done_testing() expects 2 Dubious, test returned 1 (wstat 256, 0x100) Failed 35/37 subtests # Failed test 'planned to run 9 but done_testing() expects 0' # at C:/strawberry182/perl/site/lib/Test/Spec.pm line 163. # Looks like you planned 9 tests but ran 1. # Looks like you failed 1 test of 1 run. t/08-pool-full-results.t ............. 1..9 not ok 1 - planned to run 9 but done_testing() expects 0 Dubious, test returned 1 (wstat 256, 0x100) Failed 9/9 subtests # Failed test 'planned to run 11 but done_testing() expects 0' # at C:/strawberry182/perl/site/lib/Test/Spec.pm line 163. # Looks like you planned 11 tests but ran 1. # Looks like you failed 1 test of 1 run. t/09-pool-partial-results-collect.t .. 1..11 not ok 1 - planned to run 11 but done_testing() expects 0 Dubious, test returned 1 (wstat 256, 0x100) Failed 11/11 subtests # Failed test 'planned to run 17 but done_testing() expects 0' # at C:/strawberry182/perl/site/lib/Test/Spec.pm line 163. # Looks like you planned 17 tests but ran 1. # Looks like you failed 1 test of 1 run. t/10-pool-partial-results-flush.t .... 1..17 not ok 1 - planned to run 17 but done_testing() expects 0 Dubious, test returned 1 (wstat 256, 0x100) Failed 17/17 subtests -- Alexandr Ciornii, http://chorny.net
I see that only some fails like: not ok 1 - planned to run 1 but done_testing() expects 0 Dubious, test returned 1 (wstat 256, 0x100) are still exist. All of them somehow relayed to code like this: $^O =~ /^(dos|os2|MSWin32|NetWare)$/ I have no idea how this line can fail the tests, so i'll try to play with tests by guess, during next releases. Sorry for that.