ut/blob: added poll_threads() after deleting blob
For deletion to actually deliver results, poll_threads() has to be called. g_bserrno came from previous API call, not delete itself. This patch fixes it so that g_bserrno is from the delete itself. Next patch in series adds checks for number of clones. Having such checks in first place, would allow to notice lack of poll_threads() here before. Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I3477f5c5b99106b70ee3d5706906a4dc94283180 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478975 Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
858df2692e
commit
159703c9dc
@ -695,6 +695,7 @@ blob_snapshot(void)
|
||||
CU_ASSERT(g_bserrno == 0);
|
||||
|
||||
spdk_bs_delete_blob(bs, blobid, blob_op_complete, NULL);
|
||||
poll_threads();
|
||||
CU_ASSERT(g_bserrno == 0);
|
||||
CU_ASSERT_EQUAL(_get_snapshots_count(bs), 2);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user