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 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