Subject: | Session Management Events (_start, _stop, _parent, _child) return values bug |
Date: | Sun, 17 Jan 2010 15:45:22 +0200 |
To: | bug-POE [...] rt.cpan.org |
From: | Mikko Ehto <meh.kuin.me [...] gmail.com> |
Dist: POE-1.284 is broken. Return values from _start & _stop are not
returned to parent sessions _child, documented in
http://search.cpan.org/~rcaputo/POE-1.284/lib/POE/Kernel.pm#Session_Management_Events_(_start,__stop,__parent,__child)
Tests as attachment.
Test results on POE-1.284 & POE-1.280 below (two different servers):
------------------------------------------
meh@server1:~$ uname -a
Linux hostname.removed.server1 2.6.26-2-amd64 #1 SMP Thu Nov 5
02:23:12 UTC 2009 x86_64 GNU/Linux
meh@server1:~$ perl -v
This is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi
...
meh@server1:~/code$ perl -MPOE -E 'say $POE::VERSION'
1.280
meh@server1:~/code$ prove poe_child_stop_plain.t
poe_child_stop_plain.t .. ok
All tests successful.
Files=1, Tests=5, 0 wallclock secs ( 0.04 usr 0.01 sys + 0.09 cusr
0.02 csys = 0.16 CPU)
Result: PASS
------------------------------------------
meh@server2:~$ uname -a
Linux hostname.removed.server2 2.6.31.5-xxxx-std-ipv4-64 #3 SMP Tue
Nov 24 16:54:43 UTC 2009 x86_64 GNU/Linux
meh@server2:~$ perl -v
This is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi
...
meh@server2:~/code$ perl -MPOE -E 'say $POE::VERSION'
1.284
meh@server2:~/code$ prove poe_child_stop_plain.t
poe_child_stop_plain.t .. 1/5
# Failed test '_start return value is correct'
# at poe_child_stop_plain.t line 61.
# got: undef
# expected: '_start'
# Failed test '_stop return value is correct'
# at poe_child_stop_plain.t line 62.
# got: undef
# expected: '_stop'
# Looks like you failed 2 tests of 5.
poe_child_stop_plain.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/5 subtests
Test Summary Report
-------------------
poe_child_stop_plain.t (Wstat: 512 Tests: 5 Failed: 2)
Failed tests: 4-5
Non-zero exit status: 2
Files=1, Tests=5, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.12 cusr
0.00 csys = 0.15 CPU)
Result: FAIL
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.