Skip to content

Commit 0b9e74a

Browse files
authored
Rollup merge of #134113 - jyn514:run-make-contains, r=jieyouxu
run-make: Fix `assert_stderr_not_contains_regex` It asserted on **stdout**, not stderr. r? ``@jieyouxu``
2 parents c5a8386 + 9a6deba commit 0b9e74a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/tools/run-make-support/src/command.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ impl CompletedProcess {
329329
/// Checks that `stderr` does not contain the regex pattern `unexpected`.
330330
#[track_caller]
331331
pub fn assert_stderr_not_contains_regex<S: AsRef<str>>(&self, unexpected: S) -> &Self {
332-
assert_not_contains_regex(&self.stdout_utf8(), unexpected);
332+
assert_not_contains_regex(&self.stderr_utf8(), unexpected);
333333
self
334334
}
335335

0 commit comments

Comments
 (0)