do not clobber $@ (RT #103061)
[p5sagit/Config-Any.git] / t / 64-extfail.t
CommitLineData
dcfb1d1d 1use strict;
2use warnings;
3
4use Test::More tests => 3;
5
6use Config::Any;
7
8{
9 my $result = eval {
10 Config::Any->load_files(
ccae701a 11 { files => [ 't/conf/conf.extfail' ], use_ext => 1 } );
dcfb1d1d 12 };
13
14 ok( !defined $result, 'empty result' );
15 ok( $@, 'error thrown' );
16 like(
17 $@,
ccae701a 18 qr/There are no loaders available for \.extfail files/,
dcfb1d1d 19 'error message'
20 );
21}