Skip to content

Commit

Permalink
Remove test that triggers the errir with the system unzip
Browse files Browse the repository at this point in the history
Newer versions if unzip have been fixed to ignore the issue
  • Loading branch information
pmqs committed Apr 27, 2024
1 parent 8de3147 commit 548d1e1
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions test/fix.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use strict;
use warnings;

use File::Temp qw(tempdir);
use Test::More tests => 13;
use Test::More tests => 10;
use File::Copy;
use Cwd;

Expand All @@ -23,25 +23,6 @@ chdir $dir
copy($testDir . '/' . $BadZIP, $BadZIP)
or die "Cannot copy $BadZIP to $dir: $!\n";

# test with bad zip file
########################
($status, $stdout, $stderr) = run("unzip -l $BadZIP");

if ($^O eq 'freebsd') {
# bsdunzip returns zero status
# nothing to stderr
#
ok ! $status, "bsdunzip returns zero for bad zip file";
is $stderr, "", "stderr is empty";
unlike $stdout, qr/data.txt/, "No mention of data.txt";
}
else {
ok $status, "unzip returns error for bad zip file";
isnt $stderr, "", "stderr not empty";
unlike $stdout, qr/data.txt/, "No mention of data.txt";
}


# Fix the zip file
##################
($status, $stdout, $stderr) = run("perl $FixZip $BadZIP");
Expand Down

0 comments on commit 548d1e1

Please sign in to comment.