-
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
must-compile-successfully ignored by ui tests #46587
Labels
A-testsuite
Area: The testsuite used to check the correctness of rustc
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
nikomatsakis
added
A-testsuite
Area: The testsuite used to check the correctness of rustc
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Dec 8, 2017
cc @oli-obk, who did the awesome work towards respecting |
I can work on this! |
@tommyip great =) |
@nikomatsakis Ok so these are the tests that implicitly compiles (42 out of 617 ui tests), some of which contains the flag
Should we enforce |
I think run-pass should imply the must-compile-successfully flag |
bors
added a commit
that referenced
this issue
Dec 11, 2017
Enforce successful ui tests to have must-compile-successfully flag. r? @nikomatsakis cc @oli-obk Fixes #46587
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-testsuite
Area: The testsuite used to check the correctness of rustc
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
From what I can tell, ui tests that don't have any
//~ ERROR
annotations and have no stderr file are implicitly assumed to require successful compilation. We ought to reject such tests, and instead require an explicit// must-compile-succesfully
comment.Here are some mentoring instructions. The file that controls the test suite is
runtest.rs
. UI tests in particular are controlled byrun_ui_test()
:rust/src/tools/compiletest/src/runtest.rs
Lines 2381 to 2448 in ab79caa
You can see that it begins with a call to
compile_test
, but it does not inspect the return value from that function. In contrast,compile-fail
tests check and -- if compilation is successful -- they require that amust_compile_successfully
comment is present:rust/src/tools/compiletest/src/runtest.rs
Lines 153 to 163 in ab79caa
We want to do something similar, but in the
run_ui_test
function. This will likely reveal existing tests that need a// must-compile-successfully
comment.The text was updated successfully, but these errors were encountered: