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=b2118764bd0c2a77750c769d57723a456fde02bd;hp=24c62091a10a5858a9b718f945169e753d1b7638;hb=1d172fc510f2ed15a00d475073f6df964b398484;hpb=72628dc786ef43d546023d6f17a86c3f5edeb21a diff --git a/t/10-branches.t b/t/10-branches.t index 24c6209..b211876 100644 --- a/t/10-branches.t +++ b/t/10-branches.t @@ -1,3 +1,6 @@ +use strict; +use warnings; + use Test::More tests => 10; use_ok( 'Config::Any' ); @@ -35,7 +38,8 @@ use_ok( 'Config::Any' ); ); } -my @files = glob( "t/conf/conf.*" ); +# grep out files we don't understand for these tests +my @files = grep { !m{\.(foo|unsupported)$} } glob( "t/conf/conf.*" ); my $filter = sub { return }; ok( Config::Any->load_files( { files => \@files, use_ext => 0 } ), "use_ext 0 works" );