# HG changeset patch # User Heiko Schlittermann # Date 1464733132 -7200 # Node ID 2c6f22539c7faf0dfcbe4e09a1e6ac654fadff89 # Parent 7c5787eaccb5312d62df3a9955334112ce295820 bailout on fatal error in tests diff -r 7c5787eaccb5 -r 2c6f22539c7f t/00-basic.t --- a/t/00-basic.t Wed Jun 01 00:16:29 2016 +0200 +++ b/t/00-basic.t Wed Jun 01 00:18:52 2016 +0200 @@ -1,8 +1,8 @@ use Test::More qw(no_plan); use Test::Exception; -use_ok 'Nagios::Check::DNS::check_tlsa_record'; -can_ok 'Nagios::Check::DNS::check_tlsa_record', qw(dig_tlsa); +use_ok 'Nagios::Check::DNS::check_tlsa_record' or BAIL_OUT; +can_ok 'Nagios::Check::DNS::check_tlsa_record', qw(dig_tlsa) or BAIL_OUT; # The above package doesn't use the Exporter currently, for shortcut # reasons we import the relevant subs into *this* module @@ -10,7 +10,6 @@ # API conformance subtest 'API' => sub { - can_ok 'Nagios::Check::DNS::check_tlsa_record', qw(dig_tlsa); dies_ok { dig_tlsa('example.org') } 'API: dig_tlsa() missing port'; };