delete $ENV{JSON_ANY_ORDER};
}
-use JSON::Any;
-
$ENV{PATH} = '';
$ENV{PERL5LIB} = join ($Config{path_sep}, @INC);
+require JSON::Any;
my @json_backends = qw/XS JSON DWIW/;
# test the script is setting @INC properly
for my $js (@json_backends) {
- eval {JSON::Any->import ($js) };
SKIP: {
- skip ("JSON backend $js is not available, skip testing", 1) if $@;
+ eval {JSON::Any->import ($js); 1 }
+ or skip ("JSON backend $js is not available, skip testing", 1);
local $ENV{JSON_ANY_ORDER} = $js;
eval { test_dbicadmin () };