[PATCH 1/4] tests: add epoll_create.test
Dmitry V. Levin
ldv at altlinux.org
Sun Apr 10 00:26:27 UTC 2016
On Fri, Apr 08, 2016 at 03:59:14PM +0800, Fei Jie wrote:
> * tests/epoll_create.c: New file.
> * tests/epoll_create.test: New test.
> * tests/.gitignore: Add epoll_create.
> * tests/Makefile.am (check_PROGRAMS): Likewise.
> (DECODER_TESTS): Add epoll_create.test.
> ---
> tests/.gitignore | 1 +
> tests/Makefile.am | 2 ++
> tests/epoll_create.c | 26 ++++++++++++++++++++++++++
> tests/epoll_create.test | 6 ++++++
> 4 files changed, 35 insertions(+)
> create mode 100644 tests/epoll_create.c
> create mode 100755 tests/epoll_create.test
>
> diff --git a/tests/.gitignore b/tests/.gitignore
> index ea67040..0478e18 100644
> --- a/tests/.gitignore
> +++ b/tests/.gitignore
> @@ -25,6 +25,7 @@ creat
> dup
> dup2
> dup3
> +epoll_create
> epoll_create1
> eventfd
> execve
> diff --git a/tests/Makefile.am b/tests/Makefile.am
> index 3d0b5d1..8dc6673 100644
> --- a/tests/Makefile.am
> +++ b/tests/Makefile.am
> @@ -76,6 +76,7 @@ check_PROGRAMS = \
> dup \
> dup2 \
> dup3 \
> + epoll_create \
> epoll_create1 \
> eventfd \
> execve \
> @@ -275,6 +276,7 @@ DECODER_TESTS = \
> dup.test \
> dup2.test \
> dup3.test \
> + epoll_create.test \
> epoll_create1.test \
> eventfd.test \
> execve.test \
> diff --git a/tests/epoll_create.c b/tests/epoll_create.c
> new file mode 100644
> index 0000000..5300825
> --- /dev/null
> +++ b/tests/epoll_create.c
> @@ -0,0 +1,26 @@
> +#include "tests.h"
> +#include <sys/syscall.h>
> +
> +#if defined __NR_epoll_create
> +
> +# include <errno.h>
> +# include <stdio.h>
> +# include <unistd.h>
> +# include <sys/epoll.h>
<sys/epoll.h> is not needed for this test.
Applied with sys/epoll.h line removed.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20160410/8b683ae0/attachment.bin>
More information about the Strace-devel
mailing list