From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com [62.23.145.76]) by dpdk.org (Postfix) with ESMTP id 5C6FD36E for ; Mon, 4 Apr 2016 18:20:19 +0200 (CEST) Received: from glumotte.dev.6wind.com (unknown [10.16.0.195]) by proxy.6wind.com (Postfix) with ESMTP id A6D3526095; Mon, 4 Apr 2016 18:19:36 +0200 (CEST) From: Olivier Matz To: dev@dpdk.org Cc: chaozhu@linux.vnet.ibm.com Date: Mon, 4 Apr 2016 18:19:55 +0200 Message-Id: <1459786795-28291-1-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 2.1.4 Subject: [dpdk-dev] [PATCH] autotests: fix eal flags test X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2016 16:20:19 -0000 Since commit a88ba49e51, values larger than 4 are allowed, the autotests need to be updated accordingly. Fixes: a88ba49e51 ("config: fix CPU and memory parameters on IBM POWER8") Signed-off-by: Olivier Matz --- app/test/test_eal_flags.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test/test_eal_flags.c b/app/test/test_eal_flags.c index d9c0d93..93ae6e7 100644 --- a/app/test/test_eal_flags.c +++ b/app/test/test_eal_flags.c @@ -698,8 +698,8 @@ test_invalid_n_flag(void) const char *argv1[] = { prgname, prefix, no_huge, no_shconf, "-c", "1", "-n"}; /* bad numeric value */ const char *argv2[] = { prgname, prefix, no_huge, no_shconf, "-c", "1", "-n", "e" }; - /* out-of-range value */ - const char *argv3[] = { prgname, prefix, no_huge, no_shconf, "-c", "1", "-n", "9" }; + /* zero is invalid */ + const char *argv3[] = { prgname, prefix, no_huge, no_shconf, "-c", "1", "-n", "0" }; /* sanity test - check with good value */ const char *argv4[] = { prgname, prefix, no_huge, no_shconf, "-c", "1", "-n", "2" }; /* sanity test - check with no -n flag */ -- 2.1.4