mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
tests: print stdout in error msg for no_stdout()
Fix a bug in which the error message displayed when using `CmdResult::no_stdout()` was incorrectly showing stderr when it should have been showing stdout.
This commit is contained in:
parent
d0aa9a9927
commit
7192856da4
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ impl CmdResult {
|
|||
assert!(
|
||||
self.stdout.is_empty(),
|
||||
"Expected stdout to be empty, but it's:\n{}",
|
||||
self.stderr_str()
|
||||
self.stdout_str()
|
||||
);
|
||||
self
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue