Skip to content

Commit

Permalink
run-make: Fix assert_stderr_not_contains_regex
Browse files Browse the repository at this point in the history
It asserted on **stdout**, not stderr.
  • Loading branch information
jyn514 committed Dec 10, 2024
1 parent ff7906b commit 9a6deba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/run-make-support/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ impl CompletedProcess {
/// Checks that `stderr` does not contain the regex pattern `unexpected`.
#[track_caller]
pub fn assert_stderr_not_contains_regex<S: AsRef<str>>(&self, unexpected: S) -> &Self {
assert_not_contains_regex(&self.stdout_utf8(), unexpected);
assert_not_contains_regex(&self.stderr_utf8(), unexpected);
self
}

Expand Down

0 comments on commit 9a6deba

Please sign in to comment.