From 55c3df7f41f724a94eb5d87b357b9c5b04b48f1d Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Tue, 2 May 2023 11:23:11 -0500 Subject: [PATCH] Fix BSD test failure regression Nothing major. Introduced in 1ecf9d013d58a786f9fcaeede0e1e89b142456f2. --- fish-rust/src/signal.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fish-rust/src/signal.rs b/fish-rust/src/signal.rs index 236b22eea..1e93808e6 100644 --- a/fish-rust/src/signal.rs +++ b/fish-rust/src/signal.rs @@ -616,6 +616,6 @@ add_test!("test_signal_parse", || { /// for the unknown ones too. We don't need to do this for Linux and macOS because we're using /// rust's native OS targeting for those. fn bsd_signals() { - assert_eq!(Signal::SIGEMT.code(), libc::SIGEMT); - assert_eq!(Signal::SIGINFO.code(), libc::SIGINFO); + assert_eq!(Signal::parse(L!("SIGEMT")), Some(Signal::new(libc::SIGEMT))); + assert_eq!(Signal::parse(L!("SIGINFO")), Some(Signal::new(libc::SIGINFO))); }