On Tue, Jun 20, 2017 at 01:11:51PM +0800, JingPiao Chen wrote:
> On Tue, Jun 20, 2017 at 03:21:14AM +0300, Dmitry V. Levin wrote:
> > On Mon, Jun 19, 2017 at 09:15:27AM +0800, JingPiao Chen wrote:
> > > * tests/sock_diag_unix_attrs.c: New file.
> > > * tests/gen_tests.in (sock_diag_unix_attrs): New entry.
> > > * tests/pure_executables.list: Add sock_diag_unix_attrs.
> > > * tests/.gitignore: Likewise.
> >
> > I don't see what's being checked by this test in addition to the previous
> > one, but anyway, I suggest a shorter name: nlattr_sock_diag.
>
> it test:
> netlink_sock_diag.c: decode_unix_diag_msg():
>
> offset = NLMSG_ALIGN(sizeof(msg));
> if (decode_nla && len > offset) {
> tprints(", ");
> decode_nlattr(tcp, addr + offset, len - offset,
> unix_diag_attrs, "UNIX_DIAG_???",
> NULL, 0, NULL);
> }
>
> But when I add netlink_attribute test, this test it useless.
> I remove the similar tests ([PATCH v3 05/16], [PATCH v3 07/16],
> [PATCH v3 09/16], [PATCH v3 10/16], [PATCH v3 10/16]).
> Because will test when attribute data decode are added.Other tests certainly tested something: in v4 at least the following functions are not fully covered by tests: decode_netlink_diag_msg decode_packet_diag_msg decode_inet_diag_req_compat decode_inet_diag_req_v2 -- ldv
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Strace-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/strace-devel
