Skip to content

Commit

Permalink
Fixed sub-issue 5 of Github issue redhotpenguin#75 (and Github issue r…
Browse files Browse the repository at this point in the history
  • Loading branch information
farblos committed Apr 10, 2020
1 parent 3d42f57 commit 338fcdd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions t/common.pm
Expand Up @@ -202,6 +202,15 @@ elsif (! $uztWorks) {
$uztOutErr .= "Exit value $uztExitVal\n";
}

# Unfortunately, test file "t/data/simple.zip" used above results
# in "false positives" on FreeBSD 9 and 10, which use their own,
# misbehaving, libarchive-based versions of unzip. So explicitly
# declare "unzip -t" to be not working on these systems.
if ($uztWorks && $^O eq 'freebsd' && $Config{'osvers'} =~ /\A(?:9|10)\./) {
$uztWorks = 0;
$uztOutErr .= "Misbehaving unzip on FreeBSD 9 and 10\n";
}

# Check whether we can write through a (non-seekable) pipe
my $pipeCommand = '| "' . $Config{'perlpath'} . '" -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" >';
my $pipeError = "";
Expand Down

0 comments on commit 338fcdd

Please sign in to comment.