Skip to content

UI tests that execute don't include the stdout/err of the executed program in the error message if they fail #141531

Open
@khuey

Description

@khuey

If the test executes, we get a new ProcRes from executing the test and we call get_output on that to get the output to pass into check_all_error_patterns.

let output_to_check = if let WillExecute::Yes = should_run {

We continue to pass in the old ProcRes though, so if the test fails, we don't actually print the output we failed to match against. This makes these rather annoying to debug.

Metadata

Metadata

Assignees

Labels

A-compiletestArea: The compiletest test runnerA-testsuiteArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-help-wantedCall for participation: Help is requested to fix this issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions