numam-spdk/test/app
wanghailiangx cf3ed0e19f test/app/stub: fix a null pointer passed as argument 'H'
When val gets optarg and argument is 'H', a  null pointer passed as argument 1,
which is declared to never be null. So we adjust the order, judge 'H' first.
Then './test/app/stub/stub -H' will display help info instead of 'Segmentation fault'.
This patch fixed it.
And case 'default' should return 1.

Change-Id: I6ba9311eb5ac90266fdf33ab3424ab28fa64a78f
Signed-off-by: wanghailiangx <hailiangx.e.wang@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6083
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
2021-02-08 16:13:09 +00:00
..
bdev_svc build: add ufc to SYS_LIBS in spdk.common.mk 2020-12-28 13:32:06 +00:00
fuzz build: use DEPDIRS variables to build SPDK_LIB_LIST 2020-12-18 09:40:01 +00:00
histogram_perf build: move app rules to spdk.app.mk 2018-12-12 22:35:21 +00:00
jsoncat util: add a new file operation API 2019-05-15 18:54:27 +00:00
match test/match: do not ignore all input when passing \n 2020-02-04 20:08:02 +00:00
stub test/app/stub: fix a null pointer passed as argument 'H' 2021-02-08 16:13:09 +00:00
Makefile test/nvmf: add application for target fuzz testing. 2019-07-08 09:18:19 +00:00