Spdk/test/unit/lib/blob
Tomasz Zawadzki cc991aad61 ut/blob: simplify blob closing and deletion
Operation of closing and deleting a blob is common
throughout the tests.

This patch creates helper function ut_blob_close_and_delete(),
to do exactly that with the right asserts.
Throughout the UT this function replaces all instances where
blob is closed and deleted, when it is not the subject of
particular unit test (focus is on other functionality).

It will allow to later use it in setup/cleanup functions
for UT suite - similar to bs init.

Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: Ic56594da8cd4c442b62890d62961b44771059679
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1202
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>
2020-03-11 11:34:55 +00:00
..
blob.c ut/blob: simplify blob closing and deletion 2020-03-11 11:34:55 +00:00
bs_dev_common.c blobstore/ut: Add mechanism for power failure simulation in ut 2019-06-19 08:39:00 +00:00
bs_scheduler.c thread: Rename spdk_thread_msg to spdk_msg_fn 2018-12-18 23:31:08 +00:00
Makefile test: move blob library unit tests to test/unit 2017-06-21 18:57:35 -04:00