X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F22-bad-fatal.t;h=e374a8df8cd0fcf01fd88d2ab182e83b30c0cbf9;hb=ea6d668ecc82cbd3be1f1beb8cc5e9599f3fae10;hp=64348d91cc0384e91add4ac53f3fc9fc8360d91f;hpb=c579771bace4977e6f2c26a5e5e29740a1aa4553;p=perl%2Fmodules%2Findirect.git 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');