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

Attachment: pgpErW5QRcS6S.pgp
Description: PGP signature

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to