summaryrefslogtreecommitdiff
path: root/test/sys/test_signal.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/sys/test_signal.rs')
-rw-r--r--test/sys/test_signal.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sys/test_signal.rs b/test/sys/test_signal.rs
index c8c13e52..741d97b9 100644
--- a/test/sys/test_signal.rs
+++ b/test/sys/test_signal.rs
@@ -1,5 +1,5 @@
#[cfg(not(target_os = "redox"))]
-use nix::Error;
+use nix::{errno::Errno, Error};
use nix::sys::signal::*;
use nix::unistd::*;
use std::convert::TryFrom;
@@ -92,7 +92,7 @@ fn test_signal_sigaction() {
let _m = crate::SIGNAL_MTX.lock().expect("Mutex got poisoned by another test");
let action_handler = SigHandler::SigAction(test_sigaction_action);
- assert_eq!(unsafe { signal(Signal::SIGINT, action_handler) }.unwrap_err(), Error::UnsupportedOperation);
+ assert_eq!(unsafe { signal(Signal::SIGINT, action_handler) }.unwrap_err(), Error(Errno::ENOTSUP));
}
#[test]