mirror of
https://github.com/ceph/ceph
synced 2025-01-20 01:51:34 +00:00
unittest: add a unittest for removing non-exist image.
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
This commit is contained in:
parent
064b23df85
commit
3c6acdb78a
@ -783,6 +783,8 @@ TEST_F(TestLibRBD, TestCreateLsDelete)
|
||||
ASSERT_EQ(0, rbd_remove(ioctx, name.c_str()));
|
||||
ASSERT_EQ(1, test_ls(ioctx, 1, name2.c_str()));
|
||||
|
||||
ASSERT_EQ(-ENOENT, rbd_remove(ioctx, name.c_str()));
|
||||
|
||||
rados_ioctx_destroy(ioctx);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user