Spdk/test/unit/lib
Seth Howell 4151703690 test/nvmf: add null pointer check to subsystem test
Fedora 27 ships with Clang 5 which throws an erroneous error in the
add_ns subsystem test. It believes that subsystem.ns is a null pointer.
In order to circumvent this error, I add an assert to bail out of the
test if the pointer really is null and then only execute the final
assert if the pointer is not null. This way our tests will still pass
Scan-build tests on Fedora27.

Change-Id: I54d3fae485d56033ba5eb23b0aa323480ae6a6e4
Signed-off-by: Seth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/396051
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2018-01-24 16:50:42 -05:00
..
bdev bdev: remove vbdevs during spdk_bdev_unregister() 2018-01-24 15:50:04 -05:00
blob blob: set md_ro and data_ro fields only after persisting data 2018-01-24 15:56:15 -05:00
blobfs blobfs, tree: fix a bug in spdk_tree_insert_buffer 2017-08-15 16:36:41 -04:00
event ut/event: add fatal assert for allocation 2017-10-17 11:34:38 -04:00
ioat test: move IOAT library unit test to test/unit 2017-06-21 18:57:35 -04:00
iscsi iscsi: put spdk_iscsi_conn_write_pdu() in lib/iscsi/conn.c 2018-01-22 23:22:17 -05:00
json test/json_util_ut: assert that string is valid 2017-07-12 18:13:23 -04:00
jsonrpc test: remove all uses of strcpy in the code 2017-12-12 17:34:45 -05:00
log log: rename SPDK_TRACE_* to SPDK_LOG_* 2017-12-07 12:23:19 -05:00
lvol blob: change spdk_bs_iter_next parameter to spdk_blob * 2017-12-15 12:28:44 -05:00
nvme nvme: Add support of hot remove vfio-attached devices in pcie layer. 2017-12-19 13:07:20 -05:00
nvmf test/nvmf: add null pointer check to subsystem test 2018-01-24 16:50:42 -05:00
scsi test/scsi: fix dev.c unit tests 2018-01-17 16:16:09 -05:00
util test/unit: replace sprintf call with snprintf call. 2018-01-24 15:38:05 -05:00
vhost vhost: only split on 2MB boundaries when necessary 2018-01-24 10:33:43 -05:00
Makefile lvol: Logical volume implementation 2017-09-14 19:30:54 -04:00