From: Paul Howarth Date: Sat, 17 Aug 2013 18:02:57 +0000 (+0100) Subject: The use of done_testing implies a dependency of Test::More 0.88 or X-Git-Tag: Try-Tiny-0.18~2^2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=255d6d8b92d74619e27b70d4a88732d75197c208;p=p5sagit%2FTry-Tiny.git The use of done_testing implies a dependency of Test::More 0.88 or later. To avoid this, and provide compatibility with older versions, remove done_testing and supply a test plan. To ensure that the end of the test is reached (rather than exiting early due to an error), I added an additional "pass" test to bump the test count. --- diff --git a/t/global_destruction_forked.t b/t/global_destruction_forked.t index a9c306f..a533000 100644 --- a/t/global_destruction_forked.t +++ b/t/global_destruction_forked.t @@ -1,6 +1,6 @@ use strict; use warnings; -use Test::More; +use Test::More tests => 3; use Try::Tiny; { @@ -54,4 +54,4 @@ try { } finally { exit 1 if $parent != $$ }; -done_testing; +pass("Didn't just exit");