summaryrefslogtreecommitdiff
path: root/test/sys/test_inotify.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/sys/test_inotify.rs')
-rw-r--r--test/sys/test_inotify.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sys/test_inotify.rs b/test/sys/test_inotify.rs
index a8ead46d..121b726c 100644
--- a/test/sys/test_inotify.rs
+++ b/test/sys/test_inotify.rs
@@ -14,7 +14,7 @@ pub fn test_inotify() {
instance.add_watch(tempdir.path(), AddWatchFlags::IN_ALL_EVENTS).unwrap();
let events = instance.read_events();
- assert_eq!(events.unwrap_err(), Error::Sys(Errno::EAGAIN));
+ assert_eq!(events.unwrap_err(), Error::from(Errno::EAGAIN));
File::create(tempdir.path().join("test")).unwrap();
@@ -31,7 +31,7 @@ pub fn test_inotify_multi_events() {
instance.add_watch(tempdir.path(), AddWatchFlags::IN_ALL_EVENTS).unwrap();
let events = instance.read_events();
- assert_eq!(events.unwrap_err(), Error::Sys(Errno::EAGAIN));
+ assert_eq!(events.unwrap_err(), Error::from(Errno::EAGAIN));
File::create(tempdir.path().join("test")).unwrap();
rename(tempdir.path().join("test"), tempdir.path().join("test2")).unwrap();