Skip to content

Commit

Permalink
Exclude the MixedSwiftTestingXCTestSupport test from building on non-…
Browse files Browse the repository at this point in the history
…darwin platforms
  • Loading branch information
younata committed Dec 16, 2024
1 parent 892eb76 commit d322359
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tests/NimbleTests/SwiftTestingSupportTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -29,5 +31,6 @@ class MixedSwiftTestingXCTestSupport: XCTestCase {
try require(false).to(beTrue())
}
}
#endif

#endif

0 comments on commit d322359

Please sign in to comment.