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

cargo test doesn't capture print from threads #4129

Closed
kpcyrd opened this issue Jun 6, 2017 · 1 comment
Closed

cargo test doesn't capture print from threads #4129

kpcyrd opened this issue Jun 6, 2017 · 1 comment

Comments

@kpcyrd
Copy link

kpcyrd commented Jun 6, 2017

I ran the tests for one of my crates that uses threads in its example code. I've noticed it printed some lines to stdout, even though --nocapture wasn't set, but not all of them. It appears that text printed from new threads are not correctly captured, I think this is not intended.

running 2 tests
request: 123
test tests::readme ... ok
test tests::single_requester ... ok
@Mark-Simulacrum
Copy link
Member

You're correct, this should be filed on rust-lang/rust (closing in favor of rust-lang/rust#42474).

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

No branches or pull requests

2 participants