Spdk/test/unit/lib/util
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
..
bit_array.c test: use spdk_unittest.mk for lib/unit unit tests 2018-02-14 11:07:05 -05:00
cpuset.c lib/util: return const pointer from spdk_cpuset_fmt 2018-02-20 13:05:36 -05:00
crc16.c test: use spdk_unittest.mk for lib/unit unit tests 2018-02-14 11:07:05 -05:00
crc32_ieee.c test: use spdk_unittest.mk for lib/unit unit tests 2018-02-14 11:07:05 -05:00
crc32c.c test: use spdk_unittest.mk for lib/unit unit tests 2018-02-14 11:07:05 -05:00
io_channel.c io_channel: add asserts in spdk_io_device_register 2018-04-18 12:33:25 -04:00
string.c test: use spdk_unittest.mk for lib/unit unit tests 2018-02-14 11:07:05 -05:00
Makefile util: extend cpumask to hold more than 64 cpus 2018-01-25 18:51:50 -05:00