mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 21:51:40 +03:00
Disable ZIP unit test using unzip
on iOS derived platforms
The `unzip` command is not available on iOS derived platforms because starting a new process is not allowed.
This commit is contained in:
parent
ce8cfab0f8
commit
668d8b708b
1 changed files with 11 additions and 4 deletions
15
std/zip.d
15
std/zip.d
|
@ -114,6 +114,15 @@ module std.zip;
|
|||
|
||||
import std.exception : enforce;
|
||||
|
||||
// Non-Android/Apple ARM POSIX-only, because we can't rely on the unzip
|
||||
// command being available on Android, Apple ARM or Windows
|
||||
version (Android) {}
|
||||
else version (iOS) {}
|
||||
else version (TVOS) {}
|
||||
else version (WatchOS) {}
|
||||
else version (Posix)
|
||||
version = HasUnzip;
|
||||
|
||||
//debug=print;
|
||||
|
||||
/// Thrown on error.
|
||||
|
@ -1700,10 +1709,8 @@ the quick brown fox jumps over the lazy dog\r
|
|||
assert(za.directory.length == 0);
|
||||
}
|
||||
|
||||
// Non-Android POSIX-only, because we can't rely on the unzip command being
|
||||
// available on Android or Windows
|
||||
version (Android) {} else
|
||||
version (Posix) @system unittest
|
||||
version (HasUnzip)
|
||||
@system unittest
|
||||
{
|
||||
import std.datetime, std.file, std.format, std.path, std.process, std.stdio;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue