Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/2681.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix `test_signal` test case for AIX by enabling the same exception as Solaris
4 changes: 2 additions & 2 deletions test/sys/test_signal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading