# Archive::Extract::extract('Archive::Extract=HASH(0x966eac)','to','/Users/kane/sources/p4/other/archive-extract/t/out') called at t/01_Archive-Extract.t line 180
#BEGIN { $SIG{__WARN__} = sub { require Carp; Carp::cluck(@_) } };
-if( IS_WIN32 or IS_CYGWIN ) {
+if ((IS_WIN32 or IS_CYGWIN) && ! $ENV{PERL_CORE}) {
diag( "Older versions of Archive::Zip may cause File::Spec warnings" );
diag( "See bug #19713 in rt.cpan.org. It is safe to ignore them" );
}
&& length( cwd(). $LONG_FILE ) > 247;
### warn if we are going to skip long file names
-$TOO_LONG ? diag("No long filename support - long filename extraction disabled")
- : ( push @EXPECT_NORMAL, [ [], $LONG_FILE, qr/^hello\s*$/] ) ;
+if ($TOO_LONG) {
+ diag("No long filename support - long filename extraction disabled") if ! $ENV{PERL_CORE};
+} else {
+ push @EXPECT_NORMAL, [ [], $LONG_FILE, qr/^hello\s*$/];
+}
my @ROOT = grep { length } 'src', $TOO_LONG ? 'short' : 'long';