|
Posted by Ilya Zakharevich on May 17, 2008, 8:27 am
Please log in for more thread options
[A complimentary Cc of this posting was sent to
sisyphus
> wrote:
> > 8c73295c9...@w4g2000prd.googlegroups.com:
> =2E
> =2E
> > # Looks like your test died just after 29.
>
> However, I was expecting to see a segfault or at least an error
> message (as usually happens when there's a problem with the cleanup).
> Not too sure what to make of that.
Global cleanup (or END) may have (explicitly) set $?, or called
exit(). Either from Perl code, or from XS.
Catching a call to exit() from Perl is easy, via overwriting
CORE::GLOBAL::exit(). Catching $? - I do not know, but one could put
END {warn "Value of $? is $?" if $?}
at the start of the test script. And/or at least
END {warn "Last call to END{} reached..."}
And if it prints this, this happens during global destruction...
Hope this helps,
Ilya
|