Skip to content

Commit

Permalink
Rollup merge of #134113 - jyn514:run-make-contains, r=jieyouxu
Browse files Browse the repository at this point in the history
run-make: Fix `assert_stderr_not_contains_regex`

It asserted on **stdout**, not stderr.

r? ``@jieyouxu``
  • Loading branch information
fmease authored Dec 10, 2024
2 parents c5a8386 + 9a6deba commit 0b9e74a
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 0b9e74a

Please sign in to comment.