]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_kvargs.c
net/dpaa2: report error on queue deferred start
[dpdk.git] / app / test / test_kvargs.c
index d3db88a57a9ac6ab9c725e70d5c6e615ce91c551..2a2dae43a05da23abea69a509c9524fdbbe480b5 100644 (file)
@@ -217,6 +217,7 @@ static int test_invalid_kvargs(void)
                "foo=1,=2",        /* no key */
                "foo=[1,2",        /* no closing bracket in value */
                ",=",              /* also test with a smiley */
+               "foo=[",           /* no value in list and no closing bracket */
                NULL };
        const char **args;
        const char *valid_keys_list[] = { "foo", "check", NULL };
@@ -230,8 +231,8 @@ static int test_invalid_kvargs(void)
                        rte_kvargs_free(kvlist);
                        goto fail;
                }
-               return 0;
        }
+       return 0;
 
  fail:
        printf("while processing <%s>", *args);