]> granicus.if.org Git - strace/commit
tests: move DEFAULT_STRLEN macro to tests.h
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 3 Jul 2017 15:14:54 +0000 (15:14 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 3 Jul 2017 15:14:54 +0000 (15:14 +0000)
commit005c67a900e69fc016d62ce15da346b0def48f64
treee9b143fd58147e15edcaa1b790539d18a23525ff
parent7d465949e4cf707753d4352e34a5c97632bb2b0c
tests: move DEFAULT_STRLEN macro to tests.h

* tests/tests.h [!DEFAULT_STRLEN] (DEFAULT_STRLEN): New macro.
* tests/mincore.c (DEFAULT_STRLEN): Remove.
* tests/mmsg_name.c: Likewise.
* tests/msg_control.c: Likewise.
* tests/netlink_protocol.c: Likewise.
* tests/nlattr.c: Likewise.
* tests/nlattr_inet_diag_msg.c: Likewise.
* tests/nlattr_netlink_diag_msg.c: Likewise.
* tests/nlattr_unix_diag_msg.c: Likewise.
* tests/printstr.c: Likewise.
* tests/xattr.c: Likewise.
* tests/execve.c: Likewise.
(main): Initialize str_a and str_b arrays at run time.
* tests/execveat.c: Likewise.

Suggested-by: JingPiao Chen <chenjingpiao@gmail.com>
13 files changed:
tests/execve.c
tests/execveat.c
tests/mincore.c
tests/mmsg_name.c
tests/msg_control.c
tests/netlink_protocol.c
tests/nlattr.c
tests/nlattr_inet_diag_msg.c
tests/nlattr_netlink_diag_msg.c
tests/nlattr_unix_diag_msg.c
tests/printstr.c
tests/tests.h
tests/xattr.c