From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Marchand Subject: Re: [PATCH v5] eal: fix core number validation Date: Mon, 14 Jan 2019 15:39:46 +0100 Message-ID: References: <1547216106-13680-1-git-send-email-hari.kumarx.vemula@intel.com> <1547461730-3208-1-git-send-email-hari.kumarx.vemula@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: dev@dpdk.org, reshma.pattan@intel.com, "Yigit, Ferruh" , dpdk stable To: Hari Kumar Vemula Return-path: Received: from mail-vk1-f182.google.com (mail-vk1-f182.google.com [209.85.221.182]) by dpdk.org (Postfix) with ESMTP id F277A1B20D for ; Mon, 14 Jan 2019 15:39:57 +0100 (CET) Received: by mail-vk1-f182.google.com with SMTP id y14so4914438vkd.1 for ; Mon, 14 Jan 2019 06:39:57 -0800 (PST) In-Reply-To: <1547461730-3208-1-git-send-email-hari.kumarx.vemula@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, Jan 14, 2019 at 11:31 AM Hari Kumar Vemula < hari.kumarx.vemula@intel.com> wrote: > diff --git a/test/test/test_eal_flags.c b/test/test/test_eal_flags.c > index 2acab9d69..4dc22ec36 100644 > --- a/test/test/test_eal_flags.c > +++ b/test/test/test_eal_flags.c > @@ -18,6 +18,7 @@ > #include > #include > > +#include > #include > #include > > @@ -513,6 +514,16 @@ test_missing_c_flag(void) > const char *argv25[] = { prgname, prefix, mp_flag, > "-n", "3", "--lcores", > "0-1,2@(5-7),(3-5)@(0,2),(0,6),7"}; > + /* core number is negative value */ > + const char * const argv26[] = { prgname, prefix, mp_flag, > + "-n", "3", "-l", "-5" }; > + const char * const argv27[] = { prgname, prefix, mp_flag, > + "-n", "3", "-l", "-5-7" }; > + /* core number is maximum value */ > + const char * const argv28[] = { prgname, prefix, mp_flag, > + "-n", "3", "-l", RTE_STR(RTE_MAX_LCORE) }; > + const char * const argv29[] = { prgname, prefix, mp_flag, > + "-n", "3", "-l", > "1-"RTE_STR(RTE_MAX_LCORE) }; > Please move this block with the other "-l" options. You can add my Reviewed-by tag with this. Thanks. -- David Marchand