Check rte_errno to exclude ENOTSUP as failures in test_memory.c Signed-off-by: Jie Zhou <j...@linux.microsoft.com> --- app/test/test_memory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/app/test/test_memory.c b/app/test/test_memory.c index dbf6871e71..379b0f99ca 100644 --- a/app/test/test_memory.c +++ b/app/test/test_memory.c @@ -10,6 +10,7 @@ #include <rte_memory.h> #include <rte_common.h> #include <rte_memzone.h> +#include <rte_errno.h> #include "test.h" @@ -63,7 +64,7 @@ check_seg_fds(const struct rte_memseg_list *msl, const struct rte_memseg *ms, /* we're able to get memseg fd - try getting its offset */ ret = rte_memseg_get_fd_offset_thread_unsafe(ms, &offset); if (ret < 0) { - if (errno == ENOTSUP) + if (rte_errno == ENOTSUP) return 1; return -1; } -- 2.32.0.windows.2