Skip to content

Commit 5daa42a

Browse files
committed
add missing Archiver Test fix
1 parent 93679c2 commit 5daa42a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/BasicsTests/Archiver/ZipArchiverTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ final class ZipArchiverTests: XCTestCase {
6262
let inputArchivePath = AbsolutePath(#file).parentDirectory
6363
.appending(components: "Inputs", "invalid_archive.zip")
6464
await XCTAssertAsyncThrowsError(try await archiver.extract(from: inputArchivePath, to: tmpdir)) { error in
65-
#if os(Windows)
65+
#if os(Windows) || os(FreeBSD)
66+
// On FreeBSD, unzip (bsdunzip) is backed by libarchive
6667
XCTAssertMatch((error as? StringError)?.description, .contains("Unrecognized archive format"))
6768
#else
6869
XCTAssertMatch((error as? StringError)?.description, .contains("End-of-central-directory signature not found"))

0 commit comments

Comments
 (0)