-
Notifications
You must be signed in to change notification settings - Fork 82
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
[SWT-NNNN] Exit tests #324
base: main
Are you sure you want to change the base?
Conversation
fe21f14
to
988ddfe
Compare
988ddfe
to
697123a
Compare
19f37c3
to
4825821
Compare
feb425b
to
e84b014
Compare
6f0e7f0
to
875b870
Compare
875b870
to
4365611
Compare
4365611
to
7d25e07
Compare
Rebased. |
cff8e01
to
fb4eb29
Compare
fb4eb29
to
4bb8a69
Compare
93f700c
to
71f5f82
Compare
Nice. Three notes:
|
@dabrahams Please read the draft pitch. :) 1. and 2. are covered in it. It sounds like 3. is sufficiently covered I think? |
I skimmed the pitch; I didn't see coverage for 1; what I saw was
emphasis mine. I read that as meaning “we don't have an answer for these platforms.” What I see about 2) is an explicit statement that it isn't supported. It sounds like 3 is not sufficiently covered, since the Windows signal detection case is one of the ones for which I had to build a workaround manually, and you say you're punting it 'till later. Maybe by “covered” you just mean “discussed.” In that case I don't see much discussion of strategies for handling these things, so I thought my comment would be useful. If it wasn't, feel free to ignore it. |
I'm sure that, as a former Apple employee, you can appreciate that my ability to discuss iOS et al. is limited. 🙂
It's listed as a future direction. That doesn't mean it can't be done, just that it's not part of this pitch.
If you want to detect specifically that a Windows process terminated with a specific signal, that's something that needs additional work beyond the scope of this pitch. If you want to detect that a Windows process terminated abnormally, which would include termination due to an unhandled signal, that's supported and covered by the general |
To be clear (I'm now reading my initial reply as snarky, which wasn't intentional), I appreciate the feedback @dabrahams. I can certainly amend the pitch to make it clearer we're thinking about these things. Edit: I added a "future directions" section about Windows signals. |
71f5f82
to
d4800a1
Compare
Windows signals are now handled! #766 |
And stdout/stderr will be soon too. #773 |
Nice; That puts you at least one step ahead of googletest, IIRC. |
38b0650
to
0d48878
Compare
@swift-ci test |
One of the first enhancement requests we received for swift-testing was the ability to test for precondition failures and other critical failures that terminate the current process when they occur. This feature is also frequently requested for XCTest. With swift-testing, we have the opportunity to build such a feature in an ergonomic way. Read the full proposal [here](https://github.com/apple/swift-testing/blob/jgrynspan/exit-tests-proposal/Documentation/Proposals/NNNN-exit-tests.md).
0d48878
to
39551cf
Compare
Is there any news on this PR? |
I'm still actively maintaining this branch/PR. We are not planning to formally propose this feature until the testing workgroup is set up, at the earliest. |
One of the first enhancement requests we received for swift-testing was the ability to test for precondition failures and other critical failures that terminate the current process when they occur. This feature is also frequently requested for XCTest. With swift-testing, we have the opportunity to build such a feature in an ergonomic way.
Read the full proposal here.