Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 13c2662

Browse files
committed
Archive-Tar: enable t/90_symlink.t
See jib/archive-tar-new#19
1 parent 0e3bb91 commit 13c2662

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

Porting/Maintainers.pl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ package Maintainers;
128128
qw(t/07_ptardiff.t
129129
t/99_pod.t),
130130
],
131+
# CPAN RT 121685
132+
'CUSTOMIZED' => [ qw( t/90_symlink.t ) ],
131133
},
132134

133135
'Attribute::Handlers' => {

cpan/Archive-Tar/t/90_symlink.t

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ use strict;
66
use File::Spec;
77
use File::Path;
88
use Test::More;
9+
use Config;
910

10-
### developer tests mostly, so enable them with an extra argument
11-
plan skip_all => "Skipping tests on this platform" unless @ARGV;
11+
### developer tests mostly
12+
plan skip_all => "Skipping tests on this platform"
13+
if ($^O !~ /(linux|bsd|darwin|solaris|hpux|aix|
14+
sunos|dynixptx|haiku|irix|next|dec_osf|svr4|sco_sv|unicos|
15+
cygwin)/x and !$Config{d_symlink});
1216
plan 'no_plan';
1317

1418
my $Class = 'Archive::Tar';
@@ -42,7 +46,7 @@ use_ok( $Class );
4246
ok( 1, " Extracting with insecure mode: $mode" );
4347

4448
my $warning;
45-
local $SIG{__WARN__} = sub { $warning .= "@_"; warn @_; };
49+
local $SIG{__WARN__} = sub { $warning .= "@_" };
4650

4751
my $rv = eval { $tar->extract } || 0;
4852
ok( !$@, " No fatal error" );

t/porting/customized.dat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Archive::Tar cpan/Archive-Tar/t/90_symlink.t 66a29edeff869c6569051aaecfc59b6624477be9
12
B::C cpan/B-C/t/test10 0b3ab672868ee49e8539649aad1ad8c940c4c420
23
CPAN cpan/CPAN/lib/App/Cpan.pm fcfc8800fa3dbff061da3688ad6a6fdd3716fbc8
34
CPAN cpan/CPAN/lib/CPAN.pm 0eb7416798046db5d8f923de1861280698e96634

0 commit comments

Comments
 (0)