Spdk/test/unit/lib
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
..
bdev bdev: Fix race condition when testing whether QoS is enabled 2018-04-17 21:47:12 -04:00
blob test: Remove all uses of strncpy 2018-04-13 16:15:52 -04:00
blobfs test: move test_env.c under test/common/lib 2018-03-29 00:31:24 -04:00
event subsystem: add per module configuration dump 2018-03-23 02:47:40 -04:00
ioat test: use spdk.unittest.mk for ioat unit tests 2018-02-14 10:40:40 -05:00
iscsi test: Remove all uses of strncpy 2018-04-13 16:15:52 -04:00
json ut/json: add missing UT for int64/uint64 write 2018-02-20 13:05:36 -05:00
jsonrpc jsonrpc: allow send_buf to grow as needed 2018-02-15 11:03:54 -05:00
log test: use spdk.unittest.mk for event and log unit tests 2018-02-14 11:07:05 -05:00
lvol lvol: Creating 2 lvols simultaneously with same name 2018-04-17 14:03:22 -04:00
net net: create NET_MODULE for compiling different net_implementations 2018-03-15 17:54:29 -04:00
nvme nvme: use AER configuation structure when starting controller 2018-04-10 15:43:38 -04:00
nvmf Revert "subsystem.c: make subsystem_remove_ns asynchronous" 2018-04-17 20:17:27 -04:00
scsi scsi: validate dev name length 2018-04-10 15:43:03 -04:00
util io_channel: add asserts in spdk_io_device_register 2018-04-18 12:33:25 -04:00
vhost vhost: add JSON config dump 2018-04-16 19:27:33 -04:00
json_mock.c subsystem: add per module configuration dump 2018-03-23 02:47:40 -04:00
Makefile test: add spdk_sock unit tests 2018-02-12 12:30:39 -05:00