1
Fork 0
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:
Jeffrey Finkelstein 2022-04-09 00:15:59 -04:00
parent d0aa9a9927
commit 7192856da4

View file

@ -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
}