From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 20517A0C45; Sat, 4 Sep 2021 06:19:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2FB6C41135; Sat, 4 Sep 2021 06:19:29 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 44C4040DDD for ; Sat, 4 Sep 2021 06:19:22 +0200 (CEST) Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id F18B220B03B7; Fri, 3 Sep 2021 21:19:20 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com F18B220B03B7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1630729161; bh=KR7sjeooyf1knREaQULSDoZRcOc2rvkvtNP38O2vq6c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OiJDG4MXgTh+u0PAroykPUSaWlZgF579pTchk7fEWnAprABRPxs9IG11kk3TJc01F b5ovXXYZCiJ8/nxHmh3KSfPPPy8WziaPLqB4rUYC3+EIJ7C6dxHyQ/TOmhDngV4tFz ZeOhawrhK4+wdhH3Twfxvf01la0uPgDDSf35jFOI= From: Jie Zhou To: dev@dpdk.org Cc: dmitry.kozliuk@gmail.com, roretzla@microsoft.com, navasile@linux.microsoft.com, dmitrym@microsoft.com, pallavi.kadam@intel.com, talshn@nvidia.com, thomas@monjalon.net, aconole@redhat.com Date: Fri, 3 Sep 2021 21:19:08 -0700 Message-Id: <1630729155-24584-7-git-send-email-jizh@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1630729155-24584-1-git-send-email-jizh@linux.microsoft.com> References: <1629306834-6277-1-git-send-email-jizh@linux.microsoft.com> <1630729155-24584-1-git-send-email-jizh@linux.microsoft.com> Subject: [dpdk-dev] [PATCH v3 06/13] app/test: exclude ENOTSUP as failure X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Check rte_errno to exclude ENOTSUP as failures in test_memory.c Signed-off-by: Jie Zhou --- app/test/test_memory.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/test/test_memory.c b/app/test/test_memory.c index 7d5ae99bab..6f4fc02c03 100644 --- a/app/test/test_memory.c +++ b/app/test/test_memory.c @@ -9,6 +9,7 @@ #include #include #include +#include #include "test.h" @@ -53,7 +54,7 @@ check_seg_fds(const struct rte_memseg_list *msl, const struct rte_memseg *ms, /* ENOTSUP means segment is valid, but there is not support for * segment fd API (e.g. on FreeBSD). */ - if (errno == ENOTSUP) + if (rte_errno == ENOTSUP) return 1; /* all other errors are treated as failures */ return -1; @@ -62,7 +63,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