]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/librbd: make rollback in TestGroup.add_snapshot{,PP} meaningful
authorIlya Dryomov <idryomov@gmail.com>
Thu, 13 Jun 2024 14:24:43 +0000 (16:24 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sun, 23 Jun 2024 09:50:53 +0000 (11:50 +0200)
commit5fe803e0643fae8da240676497deff41df47a55b
tree39470ea350702b12c7cd3d54177e180da7711d01
parentda4ed200a1089b7a3aa982e7ddb7b9dbeab7046f
test/librbd: make rollback in TestGroup.add_snapshot{,PP} meaningful

The rollback assert doesn't really test anything -- because orig_data
and test_data are written to non-overlapping areas, the test would pass
even if rbd_group_snap_rollback() does nothing (i.e. rollback isn't
performed) as long as the call returns 0.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit b3977c53c930100310868096408ad059dc5cad9b)
src/test/librbd/test_Groups.cc