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

rustdoc: prefer output from stderr on test panic #23846

Merged
merged 1 commit into from
Mar 31, 2015

Conversation

rayglover
Copy link

Currently if a rustdoc test panics then the fatal error message is not forwarded to the user. This change will have the test runner prefer forwarding anything on the stderr of the test process.

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @brson (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see CONTRIBUTING.md for more information.

@alexcrichton
Copy link
Member

Could this actually print both just be safe? Other than that looks good to me! (although a squashing of the commits would also be nice)

Forward output from stderr when a test executable panics/fails.
@rayglover
Copy link
Author

Updated. I'm happy with this, although ultimately I'd prefer the handling/capturing of stdout to be somewhat more like the main test runner.

@alexcrichton
Copy link
Member

@bors: r+ 5dc23be

Manishearth added a commit to Manishearth/rust that referenced this pull request Mar 31, 2015
…lexcrichton

Currently if a rustdoc test panics then the fatal error message is not forwarded to the user. This change will have the test runner prefer forwarding anything on the stderr of the test process.
bors added a commit that referenced this pull request Mar 31, 2015
@bors bors merged commit 5dc23be into rust-lang:master Mar 31, 2015
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.

6 participants