From 7192856da4d26bb182c9583be3cb45e22d895201 Mon Sep 17 00:00:00 2001 From: Jeffrey Finkelstein Date: Sat, 9 Apr 2022 00:15:59 -0400 Subject: [PATCH] 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. --- tests/common/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/common/util.rs b/tests/common/util.rs index 5e1424ca4..ae93af20d 100644 --- a/tests/common/util.rs +++ b/tests/common/util.rs @@ -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 }