X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FConfig-Any.git;a=blobdiff_plain;f=t%2F10-branches.t;h=d00377bf4687d95586f01ef307f7d74458f8995a;hp=f82303bbc69daf22d70a073dba5f53b9c89f73cf;hb=26e3cdf4bbd7a8956984b64fe4f2ea9213a00e58;hpb=766100bdb8cc2f48b73464a9364a1dab276d186e diff --git a/t/10-branches.t b/t/10-branches.t index f82303b..d00377b 100644 --- a/t/10-branches.t +++ b/t/10-branches.t @@ -40,8 +40,13 @@ use_ok( 'Config::Any' ); } my @files = glob( "t/supported/conf.*" ); -ok( Config::Any->load_files( { files => \@files, use_ext => 0 } ), - "use_ext 0 works" ); +{ + require Config::Any::General; + local $SIG{ __WARN__ } = sub { } + if Config::Any::General->is_supported; + ok( Config::Any->load_files( { files => \@files, use_ext => 0 } ), + "use_ext 0 works" ); +} my $filter = sub { return }; ok( Config::Any->load_files( { files => \@files, use_ext => 1 } ),