X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FConfig-Any.git;a=blobdiff_plain;f=t%2F50-general.t;h=4f7f971d452537391bed38add91f3db4a8c90deb;hp=5361ca27104ee43f3062170dbf0c7c35a610b6d1;hb=712235202a9cc46d4d5efa86a7f40c64771f9498;hpb=67a1cd509bfc3f77a4fcaf42710de01597987bb0 diff --git a/t/50-general.t b/t/50-general.t index 5361ca2..4f7f971 100644 --- a/t/50-general.t +++ b/t/50-general.t @@ -5,7 +5,7 @@ use Test::More; use Config::Any; use Config::Any::General; -if ( !Config::Any::General->is_supported ) { +if ( !Config::Any::General->is_supported && !$ENV{RELEASE_TESTING}) { plan skip_all => 'Config::General format not supported'; } else { @@ -36,8 +36,8 @@ else { my $file = 't/invalid/conf.conf'; my $config = eval { Config::Any::General->load( $file ) }; - ok( !$config, 'config load failed' ); - ok( $@, "error thrown ($@)" ); + is $config, undef, 'config load failed'; + isnt $@, '', 'error thrown'; } # parse error generated on invalid config @@ -45,6 +45,6 @@ else { my $file = 't/invalid/conf.conf'; my $config = eval { Config::Any->load_files( { files => [$file], use_ext => 1} ) }; - ok( !$config, 'config load failed' ); - ok( $@, "error thrown ($@)" ); + is $config, undef, 'config load failed'; + isnt $@, '', 'error thrown'; }