-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Move remaning compile-fail tests that are rejected by the parser to pars... #22118
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
Hm I don't actually think we're running any parse-fail tests at all! Looking at the most recent output for a successful test run there are no mentions of any Can you update this PR as well to be sure to run all the just-moved |
You might want to add Manishearth@19d8d3e to this PR too. |
@alexcrichton damn, sorry! Should I modify |
Whatever is easiest is fine by me, I'd probably go with multiple |
I've opted to add another However I am not sure which part of the Makefile is responsible for copying the test files to the test directory. Any idea what I could have missed or pointers where I could start looking? |
When you say copying test files, what are you referring to? I think your changes here should be sufficient for running the tests. |
6eedfbb
to
3845c39
Compare
I got it wrong, I just had to create the ´test/parse-fail´ directory in the configure script. It should run the parse-fail tests now. But |
@Manishearth the test case you reference fails during macro expansion (or later, I am not sure), because the |
@fhahn I would prefer if you could add a ParseFail mode to compiletest if it's easy to do. |
3845c39
to
33656fa
Compare
@brson I've updated the code. |
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log | ||
|
||
# Only check the 'reference' tests: rpass/cfail/rfail/rmake. | ||
check-ref: cleantestlibs cleantmptestlogs check-stage2-rpass check-stage2-rpass-valgrind \ | ||
check-stage2-rfail check-stage2-cfail check-stage2-rmake | ||
check-stage2-rfail check-stage2-cfail check-stage2-pfail ccheck-stage2-rmake |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ccheck typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(ping typo)
Thanks @fhahn, looks good to me! Just a small typo and otherwise r=me. Also, just to confirm, but you see the output of the tests in |
@alexcrichton I have fixed the type and now parse-fail and compile-fail tests show up when running |
(I think the typo is still there) |
33656fa
to
6824f13
Compare
Argh yes, I somehow forgot to push the updated commit. Sorry for that! |
After making `rustc` fail on errors at a stop point, like `-Z parse-only`, in rust-lang#22117, the files in this PR also fail during the parse stage and should be moved as well. Sorry for spliting this move up in two PRs.
After making
rustc
fail on errors at a stop point, like-Z parse-only
, in #22117, the files in this PR also fail during the parse stage and should be moved as well. Sorry for spliting this move up in two PRs.