Skip Menu |

This queue is for tickets about the Test-WWW-Mechanize-Catalyst CPAN distribution.

Report information
The Basics
Id: 31998
Status: resolved
Priority: 0/
Queue: Test-WWW-Mechanize-Catalyst

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

Bug Information
Severity: Critical
Broken in: 0.41
Fixed in: (no value)



Subject: Oops: kill 9 => $pid
I found this line in t/multi_content_type.t: END { kill 9, $pid } If for whatever reason $pid ends up being undef or zero this kills the entire process group which is in my case the smoke process itself:-( Will have to write a perlbug on this too, but for you I have this patch: --- ../Test-WWW-Mechanize-Catalyst-0.41-QzcM3Y/t/multi_content_type.t 2007-09-17 21:49:58.000000000 +0200 +++ t/multi_content_type.t 2007-12-30 08:54:23.000000000 +0100 @@ -39,7 +39,11 @@ $m->title_is( 'Root', 'Multi Content-Type title' ); $m->content_contains( "Hello, test \x{263A}!", 'Multi Content-Type body' ); -END { kill 9, $pid } +END { + if ($pid > 0 ){ + kill 9, $pid; + } +} 1;
The perlbug I then wrote was embarrassing because it turned out to be POSIX semantics and thus considered correct behavior to kill the whole process group when the $pid is 0. http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2007-12/msg01054.html So could you please apply my patch for T:W:M:C ? I have made it available in my CPAN diretory as ANDK/patches/Test-WWW-Mechanize-Catalyst-0.41-ANDK-01.patch.gz Thanks,
Thanks, this is fixed in 0.42.