Spdk/test/unit/lib/nvmf
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
..
ctrlr_bdev.c nvmf: Remove poll group from controller 2017-12-12 15:01:17 -05:00
ctrlr_discovery.c nvmf: Add synchronization primitives for subsystems 2018-01-03 11:58:11 -05:00
ctrlr.c nvmf: add duplicate QID check in I/O Connect 2017-12-08 14:08:19 -05:00
request.c log: rename SPDK_TRACE_* to SPDK_LOG_* 2017-12-07 12:23:19 -05:00
subsystem.c test/nvmf: add null pointer check to subsystem test 2018-01-24 16:50:42 -05:00
Makefile nvmf: Rename spdk_nvmf_session to spdk_nvmf_ctrlr 2017-08-08 13:46:48 -04:00