Skip to content

tidy: Add a check for empty .stderr and .stdout files in UI test directories #50785

Closed
@petrochenkov

Description

@petrochenkov

Tidy check in https://github.com/rust-lang/rust/blob/master/src/tools/tidy/src/ui_tests.rs makes sure that we don't have stray testname.stderr/testname.stdout files without a corresponding testname.rs.

It would be useful to add one more check into the same file making sure that testname.stderr/testname.stdout files are not empty.
Such empty files can still pass testing for compile-pass tests with no output so they can get into the repo accidentally, but they are not necessary and can be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsuiteArea: The testsuite used to check the correctness of rustcE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions