From 16a971577a6d70bde74975aef3ed3429635ae665 Mon Sep 17 00:00:00 2001 From: Clarence Manuel Date: Mon, 11 Nov 2024 22:23:17 +0800 Subject: [PATCH] fix: clippy error on test_result.rs --- library/test/src/test_result.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/test/src/test_result.rs b/library/test/src/test_result.rs index c5f4b03bfc96c..663be0537aa13 100644 --- a/library/test/src/test_result.rs +++ b/library/test/src/test_result.rs @@ -105,7 +105,7 @@ pub fn get_result_from_exit_code( Some(STATUS_FAIL_FAST_EXCEPTION) => TestResult::TrFailed, #[cfg(unix)] None => match status.signal() { - Some(libc::SIGABRT) => TestResult::TrFailed, + Some(signal) if signal == (libc::SIGABRT as i32) => TestResult::TrFailed, Some(signal) => { TestResult::TrFailedMsg(format!("child process exited with signal {signal}")) }