Spdk/test/unit
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
..
include test: use spdk.unittest.mk for histogram_data.h unit tests 2018-02-14 11:07:05 -05:00
lib io_channel: add asserts in spdk_io_device_register 2018-04-18 12:33:25 -04:00
Makefile test: add histogram unit tests 2017-12-29 14:20:48 -05:00
unittest.sh bdev/pmem: change all NVML strings to PMDK 2018-04-07 00:07:57 -04:00