Skip to content

Commit

Permalink
Merge pull request #7196 from crocopaw/zip
Browse files Browse the repository at this point in the history
Remove posix only unittest relying on presence of unzip untility.
merged-on-behalf-of: Vladimir Panteleev <[email protected]>
  • Loading branch information
dlang-bot authored Sep 26, 2019
2 parents b1e84b8 + 250db06 commit 25f38e4
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 25f38e4

Please sign in to comment.