Skip to content

Commit

Permalink
Show stderr in custom_build_name test
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Mar 17, 2024
1 parent 90741ad commit 4034735
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/custom_build_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ fn custom_build_name() {
assert!(!output.status.success());

let stderr = std::str::from_utf8(&output.stderr).unwrap();
assert!(stderr.contains("ping: => missing cap_net_raw+p capability or setuid?"));
assert!(
stderr.contains("ping: => missing cap_net_raw+p capability or setuid?"),
"stderr does not contain expected string:\n```\n{}\n```",
stderr
);
}

#[allow(clippy::disallowed_methods)]
Expand Down

0 comments on commit 4034735

Please sign in to comment.