X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F22-bad-fatal.t;h=e374a8df8cd0fcf01fd88d2ab182e83b30c0cbf9;hp=64348d91cc0384e91add4ac53f3fc9fc8360d91f;hb=1d3c3341b0d1f0192c3189d47a5b8bc78176e9db;hpb=1a28b9e5abd56be968ae09e9d45327632f1a28c8 diff --git a/t/22-bad-fatal.t b/t/22-bad-fatal.t index 64348d9..e374a8d 100644 --- a/t/22-bad-fatal.t +++ b/t/22-bad-fatal.t @@ -3,12 +3,7 @@ use strict; use warnings; -my $total; -BEGIN { - $total = 20; -} - -use Test::More tests => 1; +use Test::More; use IPC::Cmd qw/run/; @@ -21,5 +16,8 @@ use IPC::Cmd qw/run/; 't/data/bad.d' ]; +plan skip_all => "Couldn't capture buffers" if $success and not defined $stderr; +plan tests => 1; + $stderr = join '', @$stderr; ok(!$success && $err_code && $stderr =~ /^Indirect\s+call\s+of\s+method\s+"new"\s+on\s+object\s+"Hlagh1"/mg, 'croak when :fatal is specified');