fix test failure with JSON::XS 2.x (RT#132578)
[p5sagit/JSON-MaybeXS.git] / t / preload_xs.t
index 055381c..539b524 100644 (file)
@@ -1,8 +1,8 @@
 use strict;
-use warnings FATAL => 'all';
+use warnings;
 
-use if !eval { require JSON::XS; 1; }, 'Test::More', skip_all => 'No JSON::XS';
-use Test::More;
+use if !eval { require JSON::XS; JSON::XS->VERSION(3.0); 1; }, 'Test::More', skip_all => 'No JSON::XS';
+use Test::More 0.88;
 use JSON::MaybeXS;
 
 diag 'Using JSON::XS ', JSON::XS->VERSION;
@@ -12,6 +12,6 @@ is( JSON, 'JSON::XS', 'Correct JSON class' );
 is( \&encode_json, \&JSON::XS::encode_json, 'Correct encode_json function' );
 is( \&decode_json, \&JSON::XS::decode_json, 'Correct encode_json function' );
 
-require 't/lib/is_bool.pm';
+require './t/lib/is_bool.pm';
 
 done_testing;