From: Karen Etheridge Date: Tue, 5 Jan 2016 18:45:16 +0000 (-0800) Subject: fix Test::More prereq for done_testing X-Git-Tag: v1.003006_001~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2c67ae6481251184a8e841d124f3a5d68d3754a3;p=p5sagit%2FJSON-MaybeXS.git fix Test::More prereq for done_testing --- diff --git a/t/cpanel.t b/t/cpanel.t index 2beef29..81f8a7a 100644 --- a/t/cpanel.t +++ b/t/cpanel.t @@ -1,6 +1,6 @@ use strict; use warnings; -use Test::More; +use Test::More 0.88; use JSON::MaybeXS; unless ( eval { require Cpanel::JSON::XS; 1 } ) { diff --git a/t/legacy.t b/t/legacy.t index 495d5e3..20223ec 100644 --- a/t/legacy.t +++ b/t/legacy.t @@ -2,7 +2,7 @@ use strict; use warnings; use Test::Without::Module 'Cpanel::JSON::XS'; -use Test::More; +use Test::More 0.88; use JSON::MaybeXS qw/:legacy/; my $in = '[1, 2, 3, 4]'; diff --git a/t/new.t b/t/new.t index d62e755..bf3f9e2 100644 --- a/t/new.t +++ b/t/new.t @@ -1,6 +1,6 @@ use strict; use warnings; -use Test::More; +use Test::More 0.88; use JSON::MaybeXS (); our @call; diff --git a/t/none.t b/t/none.t index 9ef4ec3..c3d350a 100644 --- a/t/none.t +++ b/t/none.t @@ -3,7 +3,7 @@ use warnings; use Test::Without::Module 'Cpanel::JSON::XS'; use Test::Without::Module 'JSON::XS'; use Test::Without::Module 'JSON::PP'; -use Test::More; +use Test::More 0.88; ok(!eval { require JSON::MaybeXS; 1 }, 'Class failed to load'); diff --git a/t/pp.t b/t/pp.t index 9a74a9e..1d213fb 100644 --- a/t/pp.t +++ b/t/pp.t @@ -3,7 +3,7 @@ use warnings; use Test::Without::Module 'Cpanel::JSON::XS', 'JSON::XS'; use if !eval { require JSON::PP; 1; }, 'Test::More', skip_all => 'No JSON::PP'; -use Test::More; +use Test::More 0.88; use JSON::MaybeXS; diag 'Using JSON::PP ', JSON::PP->VERSION; diff --git a/t/preload_cpanel.t b/t/preload_cpanel.t index a740330..9f37ec7 100644 --- a/t/preload_cpanel.t +++ b/t/preload_cpanel.t @@ -1,7 +1,7 @@ use strict; use warnings; use if !eval { require Cpanel::JSON::XS; 1; }, 'Test::More', skip_all => 'No Cpanel::JSON::XS'; -use Test::More; +use Test::More 0.88; use JSON::MaybeXS; diag 'Using Cpanel::JSON::XS ', Cpanel::JSON::XS->VERSION; diff --git a/t/preload_xs.t b/t/preload_xs.t index aecb88a..8b0a415 100644 --- a/t/preload_xs.t +++ b/t/preload_xs.t @@ -2,7 +2,7 @@ use strict; use warnings; use if !eval { require JSON::XS; 1; }, 'Test::More', skip_all => 'No JSON::XS'; -use Test::More; +use Test::More 0.88; use JSON::MaybeXS; diag 'Using JSON::XS ', JSON::XS->VERSION; diff --git a/t/xs.t b/t/xs.t index 8e2b089..d57a030 100644 --- a/t/xs.t +++ b/t/xs.t @@ -2,7 +2,7 @@ use strict; use warnings; use Test::Without::Module 'Cpanel::JSON::XS'; -use Test::More; +use Test::More 0.88; use JSON::MaybeXS; unless ( eval { require JSON::XS; 1 } ) {