diff --git a/tests/custom_build_name.rs b/tests/custom_build_name.rs index faf11d3..d54fb3b 100644 --- a/tests/custom_build_name.rs +++ b/tests/custom_build_name.rs @@ -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)]