test/mem: fix memory autotests on FreeBSD
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 17 Sep 2021 15:09:17 +0000 (16:09 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Sat, 2 Oct 2021 14:40:20 +0000 (16:40 +0200)
commit086d426406bd3f6fac96a15bbd871c7fe714bc2d
treebdfaf4507d2d95f4ac4f91b44923970cbf7d3651
parent47a4f2650c71d9197231a95c5df8f89d0f65e882
test/mem: fix memory autotests on FreeBSD

The memory autotests were failing on FreeBSD, due to an incorrect errno
variable being checked for ENOTSUP. The test checked "errno" while the
DPDK API sets "rte_errno". Changing to check the right variable makes
the test behave properly.

Fixes: c3e35a0966b8 ("test/mem: check segment fd API")

Reported-by: Brandon Lo <blo@iol.unh.edu>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
app/test/test_memory.c