in reply to AnyEvent::ForkManager fails tests on Cygwin

I get a:

t\001_basic.t ..... 1/63 No such signal: SIGUSR1 at t\001_basic.t line + 74. No such signal: SIGUSR1 at t\001_basic.t line 74. t\001_basic.t ..... 22/63 Unrecognized signal name "USR1" at C:\....\A +nyEvent-ForkManager-0.04\blib\lib/AnyEvent/ForkManager.pm line 154 # Looks like you planned 63 tests but ran 22. # Looks like your test exited with -1 just after 22.

and then a hang.

Strawberry 5.18.2.1 portable.

$ perl -v This is perl 5, version 18, subversion 2 (v5.18.2) built for MSWin32-x +86-multi-thread-64int Copyright 1987-2013, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge.

--MidLifeXis

Replies are listed 'Best First'.
Re^2: AnyEvent::ForkManager fails tests on Cygwin
by choroba (Cardinal) on Apr 30, 2015 at 14:04 UTC
    Thank you for the report. Does the hang disappear when you add the usleep to Test::SharedFork::Store.pm?
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      Nope. I even tried replacing USR1 with something available on Windows (a couple of somethings, actually: TERM, INT, NUM17 (just for grins)), but to no avail.

      t\001_basic.t ..... 1..63 # start on_start ok 1 - not working max ok 2 - called by manager # end on_start ok 3 - called by child # start on_start ok 4 - not working max ok 5 - called by manager # end on_start # start on_working_max ok 6 - working max ok 7 - called by manager # end on_working_max # start on_enqueue ok 8 - called by child ok 9 - working max ok 10 - called by manager # end on_start # start on_working_max ok 11 - working max ok 12 - called by manager # end on_working_max # start on_enqueue ok 13 - working max ok 14 - called by manager # end on_start # start on_working_max ok 15 - working max ok 16 - called by manager # end on_working_max # start on_enqueue ok 17 - working max ok 18 - called by manager # end on_start # start on_working_max ok 19 - working max ok 20 - called by manager # end on_working_max # start on_enqueue ok 21 - working max ok 22 - called by manager # end on_start # exit_code: 1 # exit_code: 2

      Hangs right there.

      --MidLifeXis