summaryrefslogtreecommitdiff
path: root/test/sys/test_signalfd.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/sys/test_signalfd.rs')
-rw-r--r--test/sys/test_signalfd.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sys/test_signalfd.rs b/test/sys/test_signalfd.rs
index 6d65e6a0..a2f8fd8f 100644
--- a/test/sys/test_signalfd.rs
+++ b/test/sys/test_signalfd.rs
@@ -17,7 +17,7 @@ fn test_signalfd() {
// Send a SIGUSR1 signal to the current process. Note that this uses `raise` instead of `kill`
// because `kill` with `getpid` isn't correct during multi-threaded execution like during a
// cargo test session. Instead use `raise` which does the correct thing by default.
- raise(signal::SIGUSR1).ok().expect("Error: raise(SIGUSR1) failed");
+ raise(signal::SIGUSR1).expect("Error: raise(SIGUSR1) failed");
// And now catch that same signal.
let res = fd.read_signal().unwrap().unwrap();