]> granicus.if.org Git - strace/commit
tests: enhance nlattr_inet_diag_msg test
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 30 Jun 2017 21:38:49 +0000 (21:38 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 30 Jun 2017 21:38:49 +0000 (21:38 +0000)
commitaecff115c0e70dfe2ce64c7208083505777eda24
treec6f58ee2659789504913291e9b73a4f2204b4b44
parent16ebda581eb204d161ece7434ff62409d17a46c0
tests: enhance nlattr_inet_diag_msg test

* tests/test_nlattr.h: New file.
* tests/Makefile.am (libtests_a_SOURCES): Add it.
* tests/nlattr_inet_diag_msg.c: Include "test_nlattr.h".
(test_inet_diag_meminfo, test_inet_diag_vegasinfo,
test_inet_diag_dctcpinfo, test_inet_diag_bbrinfo): Remove.
(address): New variable.
(init_inet_diag_msg): Remove "address" argument, add const qualifier
to all remaining arguments.
(print_inet_diag_msg, print_uint): New functions.
(main): Use macros from test_nlattr.h file.
tests/Makefile.am
tests/nlattr_inet_diag_msg.c
tests/test_nlattr.h [new file with mode: 0644]