From: Rafael Garcia-Suarez Date: Fri, 20 Apr 2007 15:03:57 +0000 (+0000) Subject: Silence some diagnostic messages when running within the core tests. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=03998fa0ba34a50aef3f87b02dd791927e98ef17;p=p5sagit%2Fp5-mst-13.2.git Silence some diagnostic messages when running within the core tests. By Jerry D. Hedden p4raw-id: //depot/perl@30997 --- diff --git a/lib/Archive/Extract/t/01_Archive-Extract.t b/lib/Archive/Extract/t/01_Archive-Extract.t index 2a255f5..43b92db 100644 --- a/lib/Archive/Extract/t/01_Archive-Extract.t +++ b/lib/Archive/Extract/t/01_Archive-Extract.t @@ -33,7 +33,7 @@ use Module::Load::Conditional qw[check_install]; # 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" ); } diff --git a/lib/Archive/Tar/t/02_methods.t b/lib/Archive/Tar/t/02_methods.t index c717a8f..b8c7ab2 100644 --- a/lib/Archive/Tar/t/02_methods.t +++ b/lib/Archive/Tar/t/02_methods.t @@ -65,8 +65,11 @@ my $TOO_LONG = ($^O eq 'MSWin32' or $^O eq 'cygwin' or $^O eq 'VMS') && 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';