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

Better removal of UI tests with errors emitted by the frontend #537

Open
antoyo opened this issue Jul 5, 2024 · 3 comments
Open

Better removal of UI tests with errors emitted by the frontend #537

antoyo opened this issue Jul 5, 2024 · 3 comments
Labels
good first issue Good for newcomers sync

Comments

@antoyo
Copy link
Contributor

antoyo commented Jul 5, 2024

The test tests/ui/consts/const-eval/parse_ints.rs in the file failing-ui-tests.txt even though this is not something to fix on our end.

The reason it is not removed is because the test file doesn't contain any error pattern like //@ error-pattern: and we only remove tests containing those patterns.
According to the documentation, a UI test is expected to generate a compile error by default, so perhaps we should only keep the tests with one of the pass headers:

  • //@ check-pass
  • //@ build-pass
  • //@ run-pass
@antoyo antoyo added good first issue Good for newcomers sync labels Jul 5, 2024
@badumbatish
Copy link

hi! i want to start partcipating in rustc_codegen_gcc, for this task does this mean i need to go through every file in the failing-ui-tests.txt and only include the files that have //@ check-pass , //@ build-pass or //@ run-pass ?

@antoyo
Copy link
Contributor Author

antoyo commented Jul 18, 2024

Sorry, I was on vacation and I missed this.

Yes, you'll kind of need to invert the logic here to check for these patterns indeed.

@ibilalkayy
Copy link

@antoyo Here is the PR that I sent and it solves this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers sync
Projects
None yet
Development

No branches or pull requests

3 participants