drop the use of fatal warnings in tests
[p5sagit/JSON-MaybeXS.git] / t / cpanel.t
index 5ffa55f..2beef29 100644 (file)
@@ -1,14 +1,14 @@
 use strict;
-use warnings FATAL => 'all';
+use warnings;
 use Test::More;
 use JSON::MaybeXS;
 
 unless ( eval { require Cpanel::JSON::XS; 1 } ) {
-    plan skip_all => 'Cpanel::JSON::XS not installed';
-    done_testing;
-    exit;
+    plan skip_all => 'No Cpanel::JSON::XS';
 }
 
+diag 'Using Cpanel::JSON::XS ', Cpanel::JSON::XS->VERSION;
+
 is( JSON, 'Cpanel::JSON::XS', 'Correct JSON class' );
 
 is( \&encode_json,
@@ -21,4 +21,6 @@ is( \&decode_json,
     'Correct encode_json function'
 );
 
+require 't/lib/is_bool.pm';
+
 done_testing;