Skip Menu |

This queue is for tickets about the MooseX-Daemonize CPAN distribution.

Report information
The Basics
Id: 50754
Status: resolved
Priority: 0/
Queue: MooseX-Daemonize

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

Bug Information
Severity: Normal
Broken in: 0.09
Fixed in: (no value)



Subject: t/31.with_pid_file_and_poe.t fails !is_running and PID file removed tests
Verbose test with DEBUG flag set results below. Maybe it's a timing issue? bash-3.1$ uname -a Linux secdevapp06.gspt.net 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux bash-3.1$ prove --verbose t/31.with_pid_file_and_poe.t t/31.with_pid_file_and_poe.t .. ok 1 - use MooseX::Daemonize::Core; ok 2 - The object isa MyFooDaemon ok 3 - The object does MooseX::Daemonize::Core ok 4 - The object does MooseX::Daemonize::WithPidFile ok 5 - ... we have a pidfile value ok 6 - The object isa MooseX::Daemonize::Pid::File ok 7 - ... the PID file does not exist yet Our parent PID is 10614 ok 8 - ... successfully daemonized from (10614) ok 9 - The object isa MooseX::Daemonize::Pid::File ok 10 - ... the PID file exists ok 11 - ... the daemon process is running (10616) # PID TTY STAT TIME COMMAND # 10616 ? R 0:02 test-app-2 # ------- Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps- 3.2.7/FAQ # 10616 ? R 0:02 test-app-2 # 10619 pts/8 S+ 0:00 sh -c ps -x | grep test-app # 10621 pts/8 S+ 0:00 grep test-app # ------- # killing 10616 # killed 10616 # PID TTY STAT TIME COMMAND # 10616 ? S 0:02 test-app-2 # ------- Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps- 3.2.7/FAQ # 10616 ? S 0:02 test-app-2 # 10631 pts/8 S+ 0:00 sh -c ps -x | grep test-app # 10632 ? S 0:00 sh -c ps -x | grep test-app # 10634 pts/8 S+ 0:00 grep test-app # 10636 ? S 0:00 grep test-app not ok 12 - ... the daemon process is no longer running (10616) # Failed test '... the daemon process is no longer running (10616)' # at t/31.with_pid_file_and_poe.t line 129. not ok 13 - ... the PID file has been removed # Failed test '... the PID file has been removed' # at t/31.with_pid_file_and_poe.t line 130. 1..13 # Looks like you failed 2 tests of 13. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/13 subtests Test Summary Report ------------------- t/31.with_pid_file_and_poe.t (Wstat: 512 Tests: 13 Failed: 2) Failed tests: 12-13 Non-zero exit status: 2 Files=1, Tests=13, 5 wallclock secs ( 0.02 usr 0.01 sys + 0.31 cusr 0.23 csys = 0.57 CPU) Result: FAIL
We are removing this test for now, it needs to be re-written and right now is not adding any value. If you would care to contribute a better version of the test, please do. Thanks, - Stevan