From 96ee005ad9903dd1c5e8e26a274713589dba34b8 Mon Sep 17 00:00:00 2001 From: Francesco Paolo Severino Date: Fri, 6 Sep 2024 12:04:01 +0200 Subject: [PATCH] Fix tests --- .github/workflows/test.yml | 6 +++--- Tests/ZipTests/ZipTests.swift | 6 ++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6472b009..d0959785 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,9 +22,9 @@ jobs: - 5.9 - 5.10 include: - - { swift-version: 5.8, swift-branch: swift-5.8.1-RELEASE, swift-tag: 5.8.1-RELEASE } - - { swift-version: 5.9, swift-branch: swift-5.9.2-RELEASE, swift-tag: 5.9.2-RELEASE } - - { swift-version: 5.10, swift-branch: swift-5.10.1-RELEASE, swift-tag: 5.10.1-RELEASE } + - { swift-version: 5.8, swift-branch: swift-5.8.1-release, swift-tag: 5.8.1-RELEASE } + - { swift-version: 5.9, swift-branch: swift-5.9.2-release, swift-tag: 5.9.2-RELEASE } + - { swift-version: 5.10, swift-branch: swift-5.10.1-release, swift-tag: 5.10.1-RELEASE } runs-on: windows-latest timeout-minutes: 60 steps: diff --git a/Tests/ZipTests/ZipTests.swift b/Tests/ZipTests/ZipTests.swift index 3e6247d9..be35d3c3 100644 --- a/Tests/ZipTests/ZipTests.swift +++ b/Tests/ZipTests/ZipTests.swift @@ -183,12 +183,10 @@ final class ZipTests: XCTestCase { let unzipDestination = try Zip.quickUnzipFile(permissionsURL) let permission644 = unzipDestination.appendingPathComponent("unsupported_permission").appendingPathExtension("txt") let foundPermissions = try FileManager.default.attributesOfItem(atPath: permission644.path)[.posixPermissions] as? Int - #if os(Linux) - let expectedPermissions = 0o664 - #elseif os(Windows) + #if os(Windows) let expectedPermissions = 0o700 #else - let expectedPermissions = 0o644 + let expectedPermissions = 0o664 #endif XCTAssertNotNil(foundPermissions) XCTAssertEqual(