-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
compiletest: warn/error on redundant check-fail
directives
#130742
Comments
This is E-easy but just randomly adding checks here an there isn't a maintainable solution. |
@jieyouxu |
@Shunpoco Hi, I would prefer to not spot-fix this, and instead rework the logic such that it falls naturally out of test suite presets vs incompatible flag checking. |
I thought that I can modify TestProps's function (perhaps update_fail_mode) to warn/error on such a redundant directive, but do you mean we will reconstruct functions to achieve your thought? |
I moreso meant that it's not just |
Thanks. I didn't find #130565, but this issue belongs to the phase3 in that tracking issue, right? |
Originally posted by @compiler-errors in #130718 (comment)
Some test suites have a default test behavior, like
//@ check-fail
, in which case specifying that explicitly in the test is redundant and useless noise. When compiletest directive handling is worked, we should warn or error on redundant directives like these and also explain why it's redundant, e.g. "ui test mode is check-fail by default".Remark: this check should not be added before reworking how compiletest directives are handled as it's not just one test suite or directive.
The text was updated successfully, but these errors were encountered: