You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
perl-Package-DeprecationMan.../Package-DeprecationManager-...

57 lines
1.9 KiB

diff -up Package-DeprecationManager-0.11/t/basic.t.orig Package-DeprecationManager-0.11/t/basic.t
--- Package-DeprecationManager-0.11/t/basic.t.orig 2011-06-20 03:32:49.000000000 +0100
+++ Package-DeprecationManager-0.11/t/basic.t 2011-06-20 10:57:16.388489180 +0100
@@ -8,6 +8,8 @@ use Test::Requires {
'Test::Output' => '0.16',
};
+plan tests => 25;
+
{
like(
exception {
@@ -218,5 +220,3 @@ use Test::Requires {
q{},
'no deprecation warning for second call to My::Package1::foo()';
}
-
-done_testing();
diff -up Package-DeprecationManager-0.11/t/compile.t.orig Package-DeprecationManager-0.11/t/compile.t
--- Package-DeprecationManager-0.11/t/compile.t.orig 2011-06-20 03:32:49.000000000 +0100
+++ Package-DeprecationManager-0.11/t/compile.t 2011-06-20 10:57:16.398490068 +0100
@@ -1,9 +1,7 @@
use strict;
use warnings;
-use Test::More;
+use Test::More tests => 1;
eval "require Package::DeprecationManager";
ok( ! $@, 'no errors loading require Package::DeprecationManager' );
-
-done_testing();
diff -up Package-DeprecationManager-0.11/t/release-cpan-changes.t.orig Package-DeprecationManager-0.11/t/release-cpan-changes.t
--- Package-DeprecationManager-0.11/t/release-cpan-changes.t.orig 2011-06-20 03:32:49.000000000 +0100
+++ Package-DeprecationManager-0.11/t/release-cpan-changes.t 2011-06-20 11:00:39.775567270 +0100
@@ -1,15 +1,11 @@
#!perl
+use Test::More;
+
BEGIN {
- unless ($ENV{RELEASE_TESTING}) {
- require Test::More;
- Test::More::plan(skip_all => 'these tests are for release candidate testing');
- }
+ plan skip_all => 'these tests are for release candidate testing' unless ($ENV{RELEASE_TESTING});
+ eval 'use Test::CPAN::Changes';
+ plan skip_all => 'Test::CPAN::Changes required for this test' if $@;
}
-
-use Test::More;
-eval 'use Test::CPAN::Changes';
-plan skip_all => 'Test::CPAN::Changes required for this test' if $@;
changes_ok();
-done_testing();