unittest: add a unittest for removing non-exist image.

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
This commit is contained in:
Dongsheng Yang 2016-12-26 06:18:38 -05:00
parent 064b23df85
commit 3c6acdb78a

View File

@ -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);
}