This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
diag.t: Fix FAIL and vFAIL support
authorFather Chrysostomos <sprout@cpan.org>
Sun, 17 Nov 2013 06:02:16 +0000 (22:02 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 17 Nov 2013 21:08:44 +0000 (13:08 -0800)
commit20c98eb003bfef7737d4e3aa9e138285e00c94fb
tree2390b7cdf1dff172513d74818fd6256d3e4291a8
parentc80bcca71df64cffbc1f87e9a9baf3ff7b6ddd11
diag.t: Fix FAIL and vFAIL support

Until recently, it was treating them like Perl_croak et al., expecting
there to be an aTHX_.

Now that I fixed that, it turns out that FAIL and vFAIL (which were
being ignored, since all the calls lacked aTHX_) never worked anyway.

If they are matched by $source_msg_call_re, they end up in the wrong
if/else branch; namely, the one for handling packWARN, and they skip
over the one for tacking ‘in regex’ on to the end of the message.
t/porting/diag.t