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 4D6B8A0C4B; Thu, 14 Oct 2021 18:22:17 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 69F58411B4; Thu, 14 Oct 2021 18:21:54 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 97BB64003C for ; Thu, 14 Oct 2021 18:21:47 +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 94C8220B9D16; Thu, 14 Oct 2021 09:21:46 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 94C8220B9D16 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1634228506; bh=pepWjjVIbE2tSGy72zZCgpSt9v1VtfzH7pXoS5SfXBQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q4g0/YalabWawTxetKFgjg7Q22PYTNnxbCirsqiOqJYneplYS+AhlNOvt8xDvI1Qr 5j7Jtl2Nv1Az14e5vUUovRVryjvFQ6c3ql7dHqiVWu/aV01gvyXL4K+mJPcRhehDYj zKl/1qQsCGZ/8/8lYdm8RjjlkFjK4bksE90nAjZw= 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: Thu, 14 Oct 2021 09:21:35 -0700 Message-Id: <1634228502-14701-6-git-send-email-jizh@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1634228502-14701-1-git-send-email-jizh@linux.microsoft.com> References: <1634187170-3986-1-git-send-email-jizh@linux.microsoft.com> <1634228502-14701-1-git-send-email-jizh@linux.microsoft.com> Subject: [dpdk-dev] [PATCH v6 05/12] 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 | 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 #include #include +#include #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