ut/blob: do not clear g_bs in helper functions
Next patch in series adds setup/cleanup functions that use g_bs for its operation. Particular unit tests should not leave the g_bs unassigned, if cleanup is supposed to unload it. It applies to helper functions to reload/dirty_load. Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I6e022b6c762981c2c70ebf31f4981a17f54f3591 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1182 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
a9f76ed204
commit
935fbcdf5c
@ -182,7 +182,6 @@ ut_bs_reload(struct spdk_blob_store **bs, struct spdk_bs_opts *opts)
|
||||
SPDK_CU_ASSERT_FATAL(g_bs != NULL);
|
||||
*bs = g_bs;
|
||||
|
||||
g_bs = NULL;
|
||||
g_bserrno = -1;
|
||||
}
|
||||
|
||||
@ -202,7 +201,6 @@ ut_bs_dirty_load(struct spdk_blob_store **bs, struct spdk_bs_opts *opts)
|
||||
SPDK_CU_ASSERT_FATAL(g_bs != NULL);
|
||||
*bs = g_bs;
|
||||
|
||||
g_bs = NULL;
|
||||
g_bserrno = -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user