From c201fee1a2ae4d1f026011e5b3e1502ee3f3c220 Mon Sep 17 00:00:00 2001 From: Curtis D'Alves Date: Tue, 30 Sep 2025 15:26:07 -0400 Subject: [PATCH 1/2] fix test_signal test for AIX --- test/sys/test_signal.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/sys/test_signal.rs b/test/sys/test_signal.rs index 49e5089cb2..77b495aa78 100644 --- a/test/sys/test_signal.rs +++ b/test/sys/test_signal.rs @@ -122,12 +122,12 @@ fn test_signal() { assert!(SIGNALED.load(Ordering::Relaxed)); let h = unsafe { signal(Signal::SIGINT, SigHandler::SigDfl) }.unwrap(); - #[cfg(not(solarish))] + #[cfg(not(any(solarish,target_os = "aix")))] assert!(matches!(h, SigHandler::Handler(_))); // System V based OSes (e.g. illumos and Solaris) always resets the // disposition to SIG_DFL prior to calling the signal handler - #[cfg(solarish)] + #[cfg(any(solarish,target_os = "aix"))] assert!(matches!(h, SigHandler::SigDfl)); // Restore default signal handler From ed6863d752c6a370c6f84b96b8ade01ec679886d Mon Sep 17 00:00:00 2001 From: Curtis D'Alves Date: Tue, 30 Sep 2025 15:30:47 -0400 Subject: [PATCH 2/2] add changelog for #2681 fix --- changelog/2681.fixed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/2681.fixed.md diff --git a/changelog/2681.fixed.md b/changelog/2681.fixed.md new file mode 100644 index 0000000000..15f04e12ac --- /dev/null +++ b/changelog/2681.fixed.md @@ -0,0 +1 @@ +Fix `test_signal` test case for AIX by enabling the same exception as Solaris