Skip Menu |

This queue is for tickets about the POE-Component-Child CPAN distribution.

Report information
The Basics
Id: 12797
Status: resolved
Priority: 0/
Queue: POE-Component-Child

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

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



Subject: make test always fails
make test will always fail because of a bug in test.pl. In the test for stderr and stdout handling for the noninteractive child, the arguments are not specified correctly, leading POE::Wheel::Run to think that the argument of echosrv is part of the Perl executable path. Because this error is reported via stderr and causes an unsuccessful return code, the stderr and died tests work (even though it doesn't happen as expected), but the done test never happens. The arguments to run should either all be in a list or all in a single string. The following patch fixes the problem. --- test.pl 2004-05-31 23:10:07.000000000 -0500 +++ test.pl.new 2005-05-14 23:02:36.000000000 -0500 @@ -131,12 +131,12 @@ my ($self, $args) = @_[ARG0 .. $#_]; if ($t1n++ == 0) { - $t1->run("$^X echosrv", "--stderr"); + $t1->run("$^X echosrv --stderr"); } else { ok(1, "done event"); - $t1->run("$^X echosrv", "--die"); + $t1->run("$^X echosrv --die"); } } Thanks for your work on this great module, it made writing PoCo::Player::Musicus a lot easier!
thanks so much for the patch. this module is in bad need of a new release but I just haven't been able to get the time to devote to it. your patch will be included in the next version