selftests: Use separate stdout and stderr buffers in nettest
authorDavid Ahern <dsahern@gmail.com>
Thu, 14 Jan 2021 03:09:42 +0000 (20:09 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Jan 2021 00:26:48 +0000 (16:26 -0800)
commitf222c37cf75a8a626a0ca9435378e9f87b0239f1
tree987a8020d23cbd74b9cd07e538d72696af4af19e
parent6469403c97b486285365c590a8f9eaad9c72f5c5
selftests: Use separate stdout and stderr buffers in nettest

When a single instance of nettest is doing both client and
server modes, stdout and stderr messages can get interlaced
and become unreadable. Allocate a new set of buffers for the
child process handling server mode.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/nettest.c