X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=ext%2FCompress%2FZlib%2Ft%2F10defhdr.t;h=55e9ceaee8934e293d1b50ba58c0882a4bc1f1ab;hb=e8e0953481a8eb69731d048ec19e15bbd537fd73;hp=67b50d820d0b8791f969db99e00661df2e57d106;hpb=0ecadccd45b827b7dab28b1089e2750d85f803c5;p=p5sagit%2Fp5-mst-13.2.git diff --git a/ext/Compress/Zlib/t/10defhdr.t b/ext/Compress/Zlib/t/10defhdr.t index 67b50d8..55e9cea 100644 --- a/ext/Compress/Zlib/t/10defhdr.t +++ b/ext/Compress/Zlib/t/10defhdr.t @@ -1,7 +1,7 @@ BEGIN { if ($ENV{PERL_CORE}) { chdir 't' if -d 't'; - @INC = ("../lib", "lib"); + @INC = ("../lib", "lib/compress"); } } @@ -107,8 +107,7 @@ sub printHeaderInfo # Check the Deflate Header Parameters #======================================== -my $name = "test.gz" ; -my $lex = new LexFile $name ; +my $lex = new LexFile my $name ; { title "Check default header settings" ; @@ -326,7 +325,7 @@ EOM like $IO::Uncompress::Inflate::InflateError,'/Trailer Error: CRC mismatch/', "Trailer Error: CRC mismatch"; ok $gunz->eof() ; - ok ! ${ $gunz->trailingData() } ; + ok ! $gunz->trailingData() ; ok $uncomp eq $string; ok $gunz->close ; } @@ -342,7 +341,7 @@ EOM my $uncomp ; ok $gunz->read($uncomp) >= 0 ; ok $gunz->eof() ; - ok ! ${ $gunz->trailingData() } ; + ok ! $gunz->trailingData() ; ok $uncomp eq $string; ok $gunz->close ; }