Skip to content

Commit 16a9715

Browse files
committed
fix: clippy error on test_result.rs
1 parent a87c055 commit 16a9715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/test/src/test_result.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ pub fn get_result_from_exit_code(
105105
Some(STATUS_FAIL_FAST_EXCEPTION) => TestResult::TrFailed,
106106
#[cfg(unix)]
107107
None => match status.signal() {
108-
Some(libc::SIGABRT) => TestResult::TrFailed,
108+
Some(signal) if signal == (libc::SIGABRT as i32) => TestResult::TrFailed,
109109
Some(signal) => {
110110
TestResult::TrFailedMsg(format!("child process exited with signal {signal}"))
111111
}

0 commit comments

Comments
 (0)