Skip to content

Instantly share code, notes, and snippets.

@kazeburo
Created October 9, 2009 10:02
Show Gist options
  • Save kazeburo/205899 to your computer and use it in GitHub Desktop.
Save kazeburo/205899 to your computer and use it in GitHub Desktop.
% prove -Ilib t/01-starter.t
t/01-starter.t .. start_server (pid:32365) starting now...
starting new worker 32366
t/01-starter.t .. 1/9 **** GOT: HUP
@@@ before waitpid at /home/masahiro/develop/server-starter/Server-Starter-0.03/lib/Server/Starter.pm line 154.
@@@ after waitpid at /home/masahiro/develop/server-starter/Server-Starter-0.03/lib/Server/Starter.pm line 156.
before wait3
t/01-starter.t .. 5/9 0 at t/01-starter.t line 44.
1 at t/01-starter.t line 46.
# Failed test 'pid should have changed'
# at /usr/local/share/perl/5.10.0/Test/Builder.pm line 844.
# got: '32366:hello'
# expected: anything else
**** GOT: TERM
after wait3
received HUP, spawning a new worker
starting new worker 32367
@@@ before waitpid at /home/masahiro/develop/server-starter/Server-Starter-0.03/lib/Server/Starter.pm line 154.
@@@ after waitpid at /home/masahiro/develop/server-starter/Server-Starter-0.03/lib/Server/Starter.pm line 156.
new worker is now running, sending TERM to old workers:32366
### term echod
received TERM, sending TERM to all workers:32366,32367
worker 32366 died, status:0
### term echod
worker 32367 died, status:0
exitting
# Looks like you failed 1 test of 9.
t/01-starter.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/9 subtests
Test Summary Report
-------------------
t/01-starter.t (Wstat: 256 Tests: 9 Failed: 1)
Failed test: 9
Non-zero exit status: 1
Files=1, Tests=9, 7 wallclock secs ( 0.04 usr 0.01 sys + 0.15 cusr 0.09 csys = 0.29 CPU)
Result: FAIL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment