Skip to content

Commit d322359

Browse files
committed
Exclude the MixedSwiftTestingXCTestSupport test from building on non-darwin platforms
1 parent 892eb76 commit d322359

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Tests/NimbleTests/SwiftTestingSupportTest.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import XCTest
1717
}
1818
}
1919

20+
#if canImport(Darwin)
21+
// the open source version of XCTest doesn't include `XCTExpectFailure`.
2022
class MixedSwiftTestingXCTestSupport: XCTestCase {
2123
func testAlsoRecordsErrorsToXCTest() {
2224
XCTExpectFailure("This should fail")
@@ -29,5 +31,6 @@ class MixedSwiftTestingXCTestSupport: XCTestCase {
2931
try require(false).to(beTrue())
3032
}
3133
}
34+
#endif
3235

3336
#endif

0 commit comments

Comments
 (0)