Skip to content

Commit

Permalink
Unrolled build for rust-lang#134113
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#134113 - jyn514:run-make-contains, r=jieyouxu

run-make: Fix `assert_stderr_not_contains_regex`

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

r? ``@jieyouxu``
  • Loading branch information
rust-timer authored Dec 11, 2024
2 parents 33c245b + 9a6deba commit 412aa0d
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 412aa0d

Please sign in to comment.