-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Stabilize allow_fail test flag #46488
Comments
So I just had the following problem with I have a test that should raise a cpu exception (e.g. segfault) and fail, so from the docs it looked like This does not work: the test segfaulting brings the whole test harness down (I assume that a test aborting the process with an error code also brings the whole test harness down). In hindsight, after having read the source code, it is clear what is going on, but users should not have to read the source code to know what is meant by "fail" (it is a pretty general term). As I see it the best solution would be to rename An alternative that I would prefer more (since it would cover my use case) but involves significant work that will delay stabilization would be to allow more kinds of failures by spawning the |
@gnzlbg interesting... That's almost more in the domain of |
Discussed at the dev-tools meeting today: we plan to support this via external test frameworks, and so will not stabilise this. It will be deprecated and removed once such test frameworks exist. |
Notes from meeting: |
This hasn't gone anywhere in many years, with no clear use cases. A new similar feature could probably use a RFC with clear use cases and a discussion of all possible solutions. @rfcbot close |
Team member @m-ou-se has proposed to close this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
For anyone reading this issue looking for a solution, crates such as trybuild now exist. |
The final comment period, with a disposition to close, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. |
Triage: the flag has been removed by #93416, closing. |
Implemented in #42219.
I'll make the stabilization.
The text was updated successfully, but these errors were encountered: