We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa64658 commit 847a783Copy full SHA for 847a783
src/cargo/ops/cargo_test.rs
@@ -442,14 +442,9 @@ fn report_test_error(
442
err = test_error.context(err);
443
}
444
445
- crate::display_error(&err, &mut ws.gctx().shell());
446
-
447
- let harness: bool = unit_err.unit.target.harness();
448
- let nocapture: bool = test_args.contains(&"--nocapture");
449
450
- if !is_simple && executed && harness && !nocapture {
451
- drop(ws.gctx().shell().note(
452
- "test exited abnormally; to see the full output pass --nocapture to the harness.",
453
- ));
454
- }
+ crate::display_error(&err, &mut ws.config().shell());
+ drop(ws.config().shell().note(
+ "test was terminated by the signal, stderr might be truncated, \
+ pass `--nocapture` disable output buffering.",
+ ));
455
0 commit comments