numam-spdk/test/unit/lib
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
..
bdev module/raid: raid5 module 2020-03-04 10:03:45 +00:00
blob ut/blob: simplify blob closing and deletion 2020-03-11 11:34:55 +00:00
blobfs blobfs: start a poller to do cache buffer reclaim regularly 2020-03-06 10:27:45 +00:00
event lib/event: Support SPDK_THREAD_OP_RESCHED operation in reactor 2020-02-28 14:37:53 +00:00
ftl ftl ut: Fix the compilation issue. 2020-03-04 05:02:35 +00:00
ioat test/unit: remove duplicate mk/spdk.common.mk includes 2019-02-11 09:30:27 +00:00
iscsi lib/iscsi: Remove dry run processing from portal config file parsing 2020-02-17 10:06:47 +00:00
json ut/cunit: added missing semicolon on CU_ASSERT macros 2019-07-24 18:21:22 +00:00
jsonrpc jsonrpc: always allocate response for request 2019-07-19 20:56:54 +00:00
log log: passing user-defined log 2019-06-18 03:56:50 +00:00
lvol ut/lvol: fixed scan-build error on spdk_bs_init 2019-07-01 13:08:33 +00:00
notify lib/notify: rename spdk_notify_get_events to spdk_notify_foreach_event 2019-05-07 06:11:27 +00:00
nvme lib/nvme_tcp: get the max_sges from the nvme ctrlr. 2020-03-11 02:25:12 +00:00
nvmf nvmf: Add a transport notification when listeners are associated with 2020-03-10 09:12:29 +00:00
reduce lib/reduce: add array bounds checking for iovs. 2019-12-19 11:04:57 +00:00
scsi lib/scsi: Remove workaround for astyle format check about break-after-return-type 2020-03-04 10:04:26 +00:00
sock test: solve error about uninitialised data_buf 2020-02-17 10:05:18 +00:00
thread test: fix error about unittest_thread uninitialised parameters 2020-03-03 07:55:01 +00:00
util util/base64: Extend b64 decode to calculate exact len 2020-02-03 11:39:49 +00:00
vhost vhost: add a protocol_features parameter in vdev 2019-12-30 11:46:24 +00:00
json_mock.c subsystem: add per module configuration dump 2018-03-23 02:47:40 -04:00
Makefile test/unit: remove vhost dependency from ftl tests 2020-01-15 13:37:19 +00:00