Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] Update CwlPreconditionTesting and utilize _swift_reportFatalErrorsToDebugger #545

Merged
merged 2 commits into from
Jun 25, 2018

Conversation

ikesyo
Copy link
Member

@ikesyo ikesyo commented Jun 16, 2018

Fixes #478. See #478 (comment) for the details.

@ikesyo ikesyo force-pushed the update-cwlpreconditiontesting branch from 8a80caa to 40b0175 Compare June 16, 2018 07:05
@ikesyo ikesyo requested a review from a team June 20, 2018 15:58
Copy link
Contributor

@sharplet sharplet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's cool that this works, although it seems potentially unstable. I suppose that's true of the whole feature though, so lgtm 👍

currentTestCase = testCase
}

@objc func testCaseDidFinish(_ testCase: XCTestCase) {
currentTestCase = nil

#if swift(>=3.2)
_swift_reportFatalErrorsToDebugger = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to stash the previous value so we can restore it, rather than assuming true?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 13f2cc8.

@ikesyo ikesyo requested a review from sharplet June 25, 2018 12:07
@ikesyo ikesyo merged commit 83846b8 into 7.x-branch Jun 25, 2018
@ikesyo ikesyo deleted the update-cwlpreconditiontesting branch June 25, 2018 13:02
@ikesyo ikesyo mentioned this pull request Jul 5, 2018
1 task
Megal pushed a commit to Megal/Nimble that referenced this pull request Jul 31, 2019
[7.x] Update CwlPreconditionTesting and utilize _swift_reportFatalErrorsToDebugger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants