We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93679c2 commit 5daa42aCopy full SHA for 5daa42a
Tests/BasicsTests/Archiver/ZipArchiverTests.swift
@@ -62,7 +62,8 @@ final class ZipArchiverTests: XCTestCase {
62
let inputArchivePath = AbsolutePath(#file).parentDirectory
63
.appending(components: "Inputs", "invalid_archive.zip")
64
await XCTAssertAsyncThrowsError(try await archiver.extract(from: inputArchivePath, to: tmpdir)) { error in
65
-#if os(Windows)
+#if os(Windows) || os(FreeBSD)
66
+ // On FreeBSD, unzip (bsdunzip) is backed by libarchive
67
XCTAssertMatch((error as? StringError)?.description, .contains("Unrecognized archive format"))
68
#else
69
XCTAssertMatch((error as? StringError)?.description, .contains("End-of-central-directory signature not found"))
0 commit comments