mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
uutests: improve error message for non-empty stderr
This commit is contained in:
@@ -695,7 +695,11 @@ impl CmdResult {
|
||||
#[track_caller]
|
||||
pub fn fails_silently(&self) -> &Self {
|
||||
assert!(!self.succeeded());
|
||||
assert!(self.stderr.is_empty());
|
||||
assert!(
|
||||
self.stderr.is_empty(),
|
||||
"Expected stderr to be empty, but it's:\n{}",
|
||||
self.stderr_str()
|
||||
);
|
||||
self
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user