[PATCH 27/27] tests: check decoding of NETLINK_ROUTE rtgenmsg netlink attribute

Dmitry V. Levin ldv at altlinux.org
Wed Aug 16 03:14:10 UTC 2017


On Tue, Aug 15, 2017 at 01:00:46PM +0800, JingPiao Chen wrote:
> * tests/nlattr_rtgenmsg.c: New file.
> * tests/gen_tests.in (nlattr_rtgenmsg): New enrty.
> * tests/pure_executables.list: Add nlattr_rtgenmsg.
> * tests/.gitignore: Likewise.
[...]
> +#include "tests.h"
> +
> +#ifdef RTM_GETNSID
> +
> +# include <stdio.h>
> +# include <stdint.h>
> +# include <sys/socket.h>
> +# include "test_nlattr.h"
> +# include <linux/rtnetlink.h>

The ifdef is placed too early.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170816/be17b40d/attachment.bin>


More information about the Strace-devel mailing list