Skip to content

Commit

Permalink
unittest: add a unittest for removing non-exist image.
Browse files Browse the repository at this point in the history
Signed-off-by: Dongsheng Yang <[email protected]>
  • Loading branch information
yangdongsheng committed Feb 23, 2017
1 parent 064b23d commit 3c6acdb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/librbd/test_librbd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 3c6acdb

Please sign in to comment.