perl-ExtUtils-Helpers/ExtUtils-Helpers-0.017-old-Test::More.patch
Paul Howarth 2ba2d4994d Update to 0.017
- New upstream release 0.017
  - Fix man3_pagename to properly split dirs
- Update patch for building with Test::More < 0.88
2013-04-15 17:20:26 +01:00

34 lines
1.1 KiB
Diff

--- t/author-split_like_shell.t
+++ t/author-split_like_shell.t
@@ -69,6 +69,8 @@ my @win_splits =
{ 'a " b " c' => [ 'a', ' b ', 'c' ] },
);
+plan tests => (2 * scalar @win_splits) + (2 * scalar @unix_splits);
+
foreach my $test (@win_splits) {
my ($string, $expected) = %$test;
my @result = ExtUtils::Helpers::Windows::split_like_shell($string);
@@ -86,4 +88,3 @@ foreach my $test (@unix_splits) {
diag("split_like_shell error \n>$string< is not splitting as >" . join("|", @$expected) . '<');
}
-done_testing;
--- t/man_pagename.t
+++ t/man_pagename.t
@@ -2,7 +2,7 @@
use strict;
use warnings FATAL => 'all';
-use Test::More;
+use Test::More tests => 3;
use File::Spec::Functions qw/catfile/;
use ExtUtils::Helpers qw/man1_pagename man3_pagename/;
@@ -18,5 +18,3 @@ is man1_pagename('script/foo'), 'foo.1',
is man3_pagename(catfile(qw/lib ExtUtils Helpers.pm/)), join($sep, qw/ExtUtils Helpers.3pm/), 'man3_pagename';
is man3_pagename(catfile(qw/lib ExtUtils Helpers Unix.pm/)), join($sep, qw/ExtUtils Helpers Unix.3pm/), 'man3_pagename';
-
-done_testing;