X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FConfig-Any.git;a=blobdiff_plain;f=t%2F54-xml.t;h=fb52d511e6cc64c981be2028bed087c8fc099a88;hp=4ddba3cf82d70823328e30cfa802c92edd9ce053;hb=5a2e0210fe5c7da046be37b4240008f2b667be67;hpb=f103b82bc783be531637c754c37783aa6c144a45 diff --git a/t/54-xml.t b/t/54-xml.t index 4ddba3c..fb52d51 100644 --- a/t/54-xml.t +++ b/t/54-xml.t @@ -1,11 +1,18 @@ -use Test::More tests => 2; +use strict; +use warnings; +use Test::More; use Config::Any::XML; -my $config = eval { Config::Any::XML->load( 't/conf/conf.xml' ) }; +if ( !Config::Any::XML->is_supported ) { + plan skip_all => 'XML format not supported'; +} +else { + plan tests => 2; +} -SKIP: { - skip "Couldn't Load XML plugin", 2 if $@; +{ + my $config = Config::Any::XML->load( 't/conf/conf.xml' ); ok( $config ); is( $config->{ name }, 'TestApp' ); }