summaryrefslogtreecommitdiff
path: root/src/sys/signalfd.rs
diff options
context:
space:
mode:
authorMichael Baikov <manpacket@gmail.com>2022-08-10 08:55:45 +0800
committerMichael Baikov <manpacket@gmail.com>2022-08-12 08:29:29 +0800
commit384d47d25e39b3e2cdbc2a8c28ec68abb709de64 (patch)
tree0bf117466ccb206494d3cb03dace52d9fe5b29ef /src/sys/signalfd.rs
parentd9a79042524af17c49f5681cfc576d758021808f (diff)
downloadnix-384d47d25e39b3e2cdbc2a8c28ec68abb709de64.zip
Folloup for !1778, remove some of the less helpful error msgs
Diffstat (limited to 'src/sys/signalfd.rs')
-rw-r--r--src/sys/signalfd.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/sys/signalfd.rs b/src/sys/signalfd.rs
index 3d82b5ba..166bb9d2 100644
--- a/src/sys/signalfd.rs
+++ b/src/sys/signalfd.rs
@@ -147,18 +147,17 @@ mod tests {
#[test]
fn create_signalfd() {
let mask = SigSet::empty();
- let fd = SignalFd::new(&mask);
- fd.expect("assert failed");
+ SignalFd::new(&mask).unwrap();
}
#[test]
fn create_signalfd_with_opts() {
let mask = SigSet::empty();
- let fd = SignalFd::with_flags(
+ SignalFd::with_flags(
&mask,
SfdFlags::SFD_CLOEXEC | SfdFlags::SFD_NONBLOCK,
- );
- fd.expect("assert failed");
+ )
+ .unwrap();
}
#[test]