]> 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, 16 Jun 2024 22:16:14 +0000 (00:16 +0200)
commitb3977c53c930100310868096408ad059dc5cad9b
tree92a5e11ab165b1b81b9357130c49ad356383b42b
parent2b6ed5b03c8de0a8dc486ed567662cdfe5e158da
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>
src/test/librbd/test_Groups.cc