ut/nvme: add process to a ctrlr in ANA resize test

This fixes unit test failure caused by 4ac203b2d, which changed the way
asynchronous events are reported to be on a per-process basis.

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I150de552bb4be5e184d6eb518abf89f83de106eb
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9308
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Konrad Sztyber 2021-08-26 14:25:35 +02:00 committed by Tomasz Zawadzki
parent 4ac203b2de
commit a9704f6c21

View File

@ -3017,6 +3017,7 @@ test_nvme_ctrlr_ana_resize(void)
uint32_t i;
SPDK_CU_ASSERT_FATAL(nvme_ctrlr_construct(&ctrlr) == 0);
SPDK_CU_ASSERT_FATAL(nvme_ctrlr_add_process(&ctrlr, NULL) == 0);
ctrlr.vs.bits.mjr = 1;
ctrlr.vs.bits.mnr = 4;
@ -3073,6 +3074,7 @@ test_nvme_ctrlr_ana_resize(void)
g_active_ns_list_length = 0;
g_ana_hdr = NULL;
g_ana_descs = NULL;
nvme_ctrlr_free_processes(&ctrlr);
nvme_ctrlr_destruct(&ctrlr);
}