ut/nvme: restore spdk_memzone_lookup mock value
Make sure the global spdk_memzone_lookup mock variable is set back to NULL rather than pointing at dummy, which is a local variable. Change-Id: I2c2d478fb5fd8cbb96983d7005e788cd88fe642f Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/376684 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: John Kariuki <John.K.Kariuki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
1eac307937
commit
376c0de84d
@ -245,6 +245,7 @@ test_nvme_driver_init(void)
|
||||
|
||||
g_spdk_nvme_driver = NULL;
|
||||
MOCK_SET_P(spdk_memzone_reserve, void *, MOCK_PASS_THRU_P);
|
||||
MOCK_SET_P(spdk_memzone_lookup, void *, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user