summaryrefslogtreecommitdiff
path: root/cpan/IO-Compress/t/compress/truncate.pl
diff options
context:
space:
mode:
Diffstat (limited to 'cpan/IO-Compress/t/compress/truncate.pl')
-rw-r--r--cpan/IO-Compress/t/compress/truncate.pl8
1 files changed, 5 insertions, 3 deletions
diff --git a/cpan/IO-Compress/t/compress/truncate.pl b/cpan/IO-Compress/t/compress/truncate.pl
index 0bf269a7a6..24fe176ce8 100644
--- a/cpan/IO-Compress/t/compress/truncate.pl
+++ b/cpan/IO-Compress/t/compress/truncate.pl
@@ -114,7 +114,7 @@ sub run
#ok $gz->eof() ;
}
- # Test curruption directly after the header
+ # Test corruption directly after the header
# In this case the uncompression object will have been created,
# so need to check that subsequent reads from the object fail
if ($header_size > 0)
@@ -227,13 +227,15 @@ sub run
}
ok $gz->error() ;
cmp_ok $gz->errorNo(), '<', 0 ;
- ok $gz->eof() ;
+ # ok $gz->eof()
+ # or die "EOF";
$gz->close();
}
}
- # RawDeflate does not have a trailer
+ # RawDeflate and Zstandard do not have a trailer
next if $CompressClass eq 'IO::Compress::RawDeflate' ;
+ next if $CompressClass eq 'IO::Compress::Zstd' ;
title "Compressed Trailer Truncation";
foreach my $i (length($compressed) - $trailer_size .. length($compressed) -1 )