Use nvme_ns_construct()/nvme_ns_destruct() for each subtest. This is what lib/nvme uses when creating/deleting namespaces, so it makes sense to use the same functions in the unit test. If we explicitly call memset(), we might hide real problems, since e.g. nvme_ns_destruct() does not clear all struct members in struct spdk_nvme_ns. Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com> Change-Id: Ia0ffce3d0a29088282e9fc8fc5413b98d1fe7c63 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4264 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
include | ||
lib | ||
Makefile | ||
unittest.sh |