diff options
author | qupeng <onlyqupeng@gmail.com> | 2016-12-19 15:54:59 +0800 |
---|---|---|
committer | qupeng <onlyqupeng@gmail.com> | 2016-12-19 15:54:59 +0800 |
commit | acc15131bf445807025aa8d32b1aa925405705e2 (patch) | |
tree | 47f75d54b2dbc40b2ea872f5cf089cd129a1ea60 /test/sys/test_epoll.rs | |
parent | 2d6ffc394f4016e79eaffac3c86b7188773077d8 (diff) | |
download | nix-acc15131bf445807025aa8d32b1aa925405705e2.zip |
fix all and update CHANGELOG.md
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] |