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

Move compile-fail tests that are rejected by the parser to parse-fail #22011

Merged
merged 1 commit into from
Feb 8, 2015

Conversation

fhahn
Copy link
Contributor

@fhahn fhahn commented Feb 6, 2015

This PR moves all compile-fail tests that fail at the parsing stage to a parse-fail directory, in order to use the tests in the parse-fail directory to test if the new LALR parser rejects the same files as the Rust parser (as suggested by @brson in #21452). I also adjusted the testparser.py script to handle the tests in parse-fail differently.

However during working on this, I discovered, that Rust's parser sometimes fails during parsing, but does not return a nonzero return code, e.g. compiling /test/compile-fail/doc-before-semi.rs with -Z parse-only prints an error message, but returns status code 0. Compiling the same file without -Z parse-only, the same error message is displayed, but error code 101 returned. I'll look into that over the next week.

@rust-highfive
Copy link
Collaborator

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@fhahn fhahn force-pushed the separate-parse-fail-tests branch 2 times, most recently from 1433256 to 4e544ca Compare February 6, 2015 16:23
@Potpourri
Copy link
Contributor

You can also move here these two tests: use-mod-4.rs and use-ends-with-mod-sep.rs?

@nikomatsakis
Copy link
Contributor

@bors r+ 4e544ca

nice

@nikomatsakis
Copy link
Contributor

very excited to see this infrastructure coming together

@brson
Copy link
Contributor

brson commented Feb 6, 2015

Nice.

@fhahn
Copy link
Contributor Author

fhahn commented Feb 6, 2015

@Potpourri done. But there are some more files that fail during the parse stage. I'll try to fix the bug mentioned in the description as soon as possible.

@fhahn fhahn force-pushed the separate-parse-fail-tests branch from 4e544ca to 01db9a4 Compare February 6, 2015 21:26
@sanxiyn
Copy link
Member

sanxiyn commented Feb 8, 2015

@bors r=nikomatsakis 01db9a4

@bors
Copy link
Contributor

bors commented Feb 8, 2015

⌛ Testing commit 01db9a4 with merge 725cc06...

bors added a commit that referenced this pull request Feb 8, 2015
This PR moves all `compile-fail` tests that fail at the parsing stage to a `parse-fail` directory, in order to use the tests in the `parse-fail` directory to test if the new LALR parser rejects the same files as the Rust parser. I also adjusted the `testparser.py` script to handle the tests in `parse-fail` differently.

However during working on this, I discovered, that Rust's parser sometimes fails during parsing, but does not return a nonzero return code, e.g. compiling `/test/compile-fail/doc-before-semi.rs` with `-Z parse-only` prints an error message, but returns status code 0. Compiling the same file without `-Z parse-only`, the same error message is displayed, but error code 101 returned. I'll look into that over the next week.
@bors bors merged commit 01db9a4 into rust-lang:master Feb 8, 2015
@alexcrichton
Copy link
Member

Unfortunately I think that this actually stopped running all these tests: #22118 (comment).

Don't sweat it too much, but I recommend doing extra tests on Makefile-based changes in the future, we unfortunately don't have automation in place to make sure tests are run!

@fhahn fhahn deleted the separate-parse-fail-tests branch October 4, 2015 10:41
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.

8 participants