From 4034735d76b39c6efec44b5a376c653929428e4a Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Sun, 17 Mar 2024 12:50:48 +0000 Subject: [PATCH] Show stderr in `custom_build_name` test --- tests/custom_build_name.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)]