Spdk/test/unit/lib/nvme
Niklas Cassel c31fc45324 ut/nvme: use nvme_ns_construct()/nvme_ns_destruct() in nvme_ns_ut.c
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>
2020-09-18 07:25:06 +00:00
..
nvme_ctrlr_cmd.c ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
nvme_ctrlr_ocssd_cmd.c ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
nvme_ctrlr.c lib/nvme: change timeout in wait_for_completions to usec 2020-08-19 07:29:19 +00:00
nvme_ns_cmd.c ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
nvme_ns_ocssd_cmd.c ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
nvme_ns.c ut/nvme: use nvme_ns_construct()/nvme_ns_destruct() in nvme_ns_ut.c 2020-09-18 07:25:06 +00:00
nvme_pcie.c lib/nvme: remove spdk prefix from internal headers. 2020-06-01 13:07:30 +00:00
nvme_poll_group.c lib/nvme: switch poll group to use connect/disconnect semantics. 2020-04-22 19:06:26 +00:00
nvme_qpair.c lib/nvme: fix mem leak in req submit. 2020-09-02 07:38:38 +00:00
nvme_quirks.c env: add spdk_pci_id->class_id 2020-07-23 20:48:47 +00:00
nvme_rdma.c nvme/rdma: Check that SGL descriptors fit into ICD 2020-09-16 07:58:13 +00:00
nvme_tcp.c nvme: implement epoll in the tcp transport. 2020-04-24 19:38:00 +00:00
nvme_uevent.c nvme: read all uevents 2020-08-24 07:38:33 +00:00
nvme.c lib/nvme: change timeout in wait_for_completions to usec 2020-08-19 07:29:19 +00:00
Makefile test/unit: add poll_group unit tests. 2020-04-07 08:38:40 +00:00