]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_cmdline_portlist.c
app/test: remove writes in NULL buffer from cmdline tests
[dpdk.git] / app / test / test_cmdline_portlist.c
index abba008d6ef00c957f6bf2e0a4bae42cab210253..9f9633cd1daa6e09af144a4cc6331db8ac7dfe48 100644 (file)
@@ -164,13 +164,6 @@ test_parse_portlist_invalid_param(void)
 
        /* test help function */
 
-       /* try null buf */
-       ret = cmdline_get_help_portlist(NULL, NULL, sizeof(buf));
-       if (ret != -1) {
-               printf("Error: help function accepted null buffer!\n");
-               return -1;
-       }
-
        /* coverage! */
        ret = cmdline_get_help_portlist(NULL, buf, sizeof(buf));
        if (ret < 0) {