epoll_wait/epoll_wait03.c: add new testcase

Verify that:
 1) epoll_wait(2) fails if epfd is not a valid file descriptor
 2) epoll_wait(2) fails if epfd is not an epoll file descriptor
 3) epoll_wait(2) fails if maxevents is less than zero
 4) epoll_wait(2) fails if maxevents is equal to zero
 5) epoll_wait(2) fails if the memory area pointed to by events
    is not accessible with write permissions.

Expected result:
 1) epoll_wait(2) should return -1 and set errno to EBADF
 2) epoll_wait(2) should return -1 and set errno to EINVAL
 3) epoll_wait(2) should return -1 and set errno to EINVAL
 4) epoll_wait(2) should return -1 and set errno to EINVAL
 5) epoll_wait(2) should return -1 and set errno to EFAULT

Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
5 files changed