epoll_ctl/epoll_ctl02.c: add new testcase
1) epoll_ctl(2) fails if epfd is a invalid file descriptor
and set errno to EBADF.
2) epoll_ctl(2) fails if fd is a invalid file descriptor
and set errno to EBADF.
3) epoll_ctl(2) fails if op is not supported by this interface
and set errno to EINVAL.
4) epoll_ctl(2) fails if fd is the same as epfd and set errno
to EINVAL.
5) epoll_ctl(2) fails with EPOLL_CTL_DEL if fd is not registered
with this epoll instance and set errno to ENOENT.
6) epoll_ctl(2) fails with EPOLL_CTL_MOD if fd is not registered
with this epoll instance and set errno to ENOENT.
7) epoll_ctl(2) fails with EPOLL_CTL_ADD if fd is already registered
with this epoll instance and set errno to EEXIST.
Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
5 files changed