Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 103100
Status: resolved
Priority: 0/
Queue: MooseX-App

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

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



Subject: 11_process.t is unreliable
When testing "test02.pl error", the test expects that it will always exit with code 25. But when using "die", the exit code is hard to predict: the documentation says: If an uncaught exception results in interpreter exit, the exit code is determined from the values of $! and $? with this pseudocode: exit $! if $!; # errno exit $? >> 8 if $? >> 8; # child exit status exit 255; # last resort which means that your test is essentially guessing at the state of $! and $?, which are globals and affected by multiple factors. I suggest replacing the two subs in Test02::Command::Error with these: sub BUILD { warn 'XXX'; exit 25; } sub run { warn 'YYY'; exit 77; }
This issue should be fixed in 1.33. Can you please verify
On Fri Apr 17 01:15:09 2015, MAROS wrote: Show quoted text
> This issue should be fixed in 1.33. Can you please verify
Yep, it works now. Thanks for the quick fix!