From: Olivier Matz Date: Fri, 27 Mar 2020 08:09:54 +0000 (+0100) Subject: test/kvargs: fix invalid cases check X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4bf2b36fd14da74f5dd5c111501698a5b7cb0f6d;p=dpdk.git test/kvargs: fix invalid cases check The return was not properly placed, and only the first test case was validated. Fixes: e495f5435524 ("kvargs: add test case in app/test") Cc: stable@dpdk.org Signed-off-by: Olivier Matz Reviewed-by: David Marchand --- diff --git a/app/test/test_kvargs.c b/app/test/test_kvargs.c index d3db88a57a..f823b771fb 100644 --- a/app/test/test_kvargs.c +++ b/app/test/test_kvargs.c @@ -230,8 +230,8 @@ static int test_invalid_kvargs(void) rte_kvargs_free(kvlist); goto fail; } - return 0; } + return 0; fail: printf("while processing <%s>", *args);