diff options
Diffstat (limited to 'test/sys/test_epoll.rs')
-rw-r--r-- | test/sys/test_epoll.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/sys/test_epoll.rs b/test/sys/test_epoll.rs index f31d874f..a73fea6d 100644 --- a/test/sys/test_epoll.rs +++ b/test/sys/test_epoll.rs @@ -9,6 +9,10 @@ pub fn test_epoll_errno() { let result = epoll_ctl(efd, EpollOp::EpollCtlDel, 1, None); assert!(result.is_err()); assert_eq!(result.unwrap_err(), Error::Sys(Errno::ENOENT)); + + let result = epoll_ctl(efd, EpollOp::EpollCtlAdd, 1, None); + assert!(result.is_err()); + assert_eq!(result.unwrap_err(), Error::Sys(Errno::EINVAL)); } #[test] |