We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
assert_exit_code
1 parent dd616d6 commit 5f513a6Copy full SHA for 5f513a6
src/tools/run-make-support/src/command.rs
@@ -388,9 +388,13 @@ impl CompletedProcess {
388
self
389
}
390
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`].
395
#[track_caller]
396
pub fn assert_exit_code(&self, code: i32) -> &Self {
- assert!(self.output.status.code() == Some(code));
397
+ assert_eq!(self.output.status.code(), Some(code));
398
399
400
0 commit comments