Spdk/test/unit/lib/util/io_channel.c
Daniel Verkamp 37039565d0 io_channel: add asserts in spdk_io_device_register
spdk_io_device_register() doesn't have a return value, but we can at
least catch trivial mistakes like neglecting to pass a valid io_device
or create/delete callback in debug builds.

One invalid unit test case that passed NULL for all parameters is
removed, since there's no way to make that work without adding a return
value instead of asserts.

Change-Id: I3dd4c850bdb14957d2dc03209ea9ea44bbe4e616
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/408117
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2018-04-18 12:33:25 -04:00
..
.gitignore test: move lib/util unit tests to test/unit 2017-06-20 13:46:07 -04:00
io_channel_ut.c io_channel: add asserts in spdk_io_device_register 2018-04-18 12:33:25 -04:00
Makefile test: use spdk_unittest.mk for lib/unit unit tests 2018-02-14 11:07:05 -05:00