From d322359189aa3de3c1a4a60bb22796af2da68ba4 Mon Sep 17 00:00:00 2001 From: Rachel Brindle Date: Sun, 15 Dec 2024 20:59:30 -0800 Subject: [PATCH] Exclude the MixedSwiftTestingXCTestSupport test from building on non-darwin platforms --- Tests/NimbleTests/SwiftTestingSupportTest.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tests/NimbleTests/SwiftTestingSupportTest.swift b/Tests/NimbleTests/SwiftTestingSupportTest.swift index d54a9346a..a30bc0c4f 100644 --- a/Tests/NimbleTests/SwiftTestingSupportTest.swift +++ b/Tests/NimbleTests/SwiftTestingSupportTest.swift @@ -17,6 +17,8 @@ import XCTest } } +#if canImport(Darwin) +// the open source version of XCTest doesn't include `XCTExpectFailure`. class MixedSwiftTestingXCTestSupport: XCTestCase { func testAlsoRecordsErrorsToXCTest() { XCTExpectFailure("This should fail") @@ -29,5 +31,6 @@ class MixedSwiftTestingXCTestSupport: XCTestCase { try require(false).to(beTrue()) } } +#endif #endif