Skip to content

Commit

Permalink
Remove posix only unittest relying on presence of unzip untility.
Browse files Browse the repository at this point in the history
  • Loading branch information
Berni committed Sep 26, 2019
1 parent b1e84b8 commit 250db06
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions std/zip.d
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,12 @@ version (Posix) @system unittest
{
import std.datetime, std.file, std.format, std.path, std.process, std.stdio;

if (executeShell("unzip").status != 0)
{
writeln("Can't run unzip, skipping unzip test");
return;
}

auto zr = new ZipArchive();
auto am = new ArchiveMember();
am.compressionMethod = CompressionMethod.deflate;
Expand Down

0 comments on commit 250db06

Please sign in to comment.