From: Olivier Matz Date: Mon, 4 Apr 2016 16:19:55 +0000 (+0200) Subject: app/test: fix EAL flags check X-Git-Tag: spdx-start~7076 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=61017c01e45ae79366c743630f1db133902f95d1;p=dpdk.git app/test: fix EAL flags check 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 Acked-by: Pablo de Lara --- diff --git a/app/test/test_eal_flags.c b/app/test/test_eal_flags.c index d9c0d93cbc..93ae6e765d 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 */