Skip to content

Commit 5f513a6

Browse files
committed
run-make-support: improve docs for assert_exit_code
1 parent dd616d6 commit 5f513a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,13 @@ impl CompletedProcess {
388388
self
389389
}
390390

391+
/// Check the **exit status** of the process. On Unix, this is *not* the **wait status**.
392+
///
393+
/// See [`std::process::ExitStatus::code`]. This is not to be confused with
394+
/// [`std::process::ExitCode`].
391395
#[track_caller]
392396
pub fn assert_exit_code(&self, code: i32) -> &Self {
393-
assert!(self.output.status.code() == Some(code));
397+
assert_eq!(self.output.status.code(), Some(code));
394398
self
395399
}
396400
}

0 commit comments

Comments
 (0)