From: Karen Etheridge Date: Mon, 3 Oct 2016 02:13:19 +0000 (-0700) Subject: Fix "Can't locate t/lib/is_bool.pm in @INC" when . is not in @INC X-Git-Tag: v1.003009~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9c4f62de0ea3ed5602b99151e67d1d6228cebf99;p=p5sagit%2FJSON-MaybeXS.git Fix "Can't locate t/lib/is_bool.pm in @INC" when . is not in @INC --- diff --git a/Changes b/Changes index 501499b..43794e9 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,7 @@ Revision history for JSON-MaybeXS + - fix tests to no longer rely on . being in @INC (RT#120404) + 1.003008 - 2016-10-03 - added an INSTALLATION section to documentation, to clarify the use of dynamic prerequisites in Makefile.PL diff --git a/t/cpanel.t b/t/cpanel.t index 81f8a7a..417d11e 100644 --- a/t/cpanel.t +++ b/t/cpanel.t @@ -21,6 +21,6 @@ is( \&decode_json, 'Correct encode_json function' ); -require 't/lib/is_bool.pm'; +require './t/lib/is_bool.pm'; done_testing; diff --git a/t/pp.t b/t/pp.t index 9aa020f..7fe1926 100644 --- a/t/pp.t +++ b/t/pp.t @@ -25,6 +25,6 @@ is( 'Correct encode_json function' ); -require 't/lib/is_bool.pm'; +require './t/lib/is_bool.pm'; done_testing; diff --git a/t/preload_cpanel.t b/t/preload_cpanel.t index 9f37ec7..231e9ea 100644 --- a/t/preload_cpanel.t +++ b/t/preload_cpanel.t @@ -18,6 +18,6 @@ is( 'Correct encode_json function' ); -require 't/lib/is_bool.pm'; +require './t/lib/is_bool.pm'; done_testing; diff --git a/t/preload_xs.t b/t/preload_xs.t index 8b0a415..7270312 100644 --- a/t/preload_xs.t +++ b/t/preload_xs.t @@ -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; diff --git a/t/xs.t b/t/xs.t index 8caa2ad..1fa4fa9 100644 --- a/t/xs.t +++ b/t/xs.t @@ -21,6 +21,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;