You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
test that calls XCTExpectFailure does not compile on linux
Steps to reproduce
create a simple test such as one showed on documentation:
import XCTest
class XfailTests: XCTestCase {
func testExpectedFailure() throws {
let thingThatFails = false
XCTExpectFailure("Working on a fix for this problem.")
XCTAssertTrue(thingThatFails, "This is not working right now.")
}
}
create Package.swift with the test above as test target and run swift test
Expected behavior
This should compile and run, tested working on macOS 12.5
but on linux (tested on official docker image) this will fail to compile:
Hmm, I suspect that this is just API divergence and swift-corelibs-xctest has not been updated for the API changes for Xcode 12.5+. We should be able to support this.
Description
test that calls XCTExpectFailure does not compile on linux
Steps to reproduce
create a simple test such as one showed on documentation:
create Package.swift with the test above as test target and run
swift test
Expected behavior
This should compile and run, tested working on macOS 12.5
but on linux (tested on official docker image) this will fail to compile:
It compiles and runs fine once you comment out the ExpectedFailure call.
Environment
Latest swift docker:
root@50ad2ae7e8d5:/# swift --version
Swift version 5.8 (swift-5.8-RELEASE)
Target: x86_64-unknown-linux-gnu
The text was updated successfully, but these errors were encountered: