Skip to content

Commit

Permalink
add missing Archiver Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-yuji committed Jan 1, 2025
1 parent 93679c2 commit 5daa42a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/BasicsTests/Archiver/ZipArchiverTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ final class ZipArchiverTests: XCTestCase {
let inputArchivePath = AbsolutePath(#file).parentDirectory
.appending(components: "Inputs", "invalid_archive.zip")
await XCTAssertAsyncThrowsError(try await archiver.extract(from: inputArchivePath, to: tmpdir)) { error in
#if os(Windows)
#if os(Windows) || os(FreeBSD)
// On FreeBSD, unzip (bsdunzip) is backed by libarchive
XCTAssertMatch((error as? StringError)?.description, .contains("Unrecognized archive format"))
#else
XCTAssertMatch((error as? StringError)?.description, .contains("End-of-central-directory signature not found"))
Expand Down

0 comments on commit 5daa42a

Please sign in to comment.