]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Fri, 12 Jul 2024 21:14:13 +0000 (23:14 +0200)
commitbd807b2f65f98df7b7b5482563dd11e6f164f5ea
treef048a5620f643300892e191c41cdcc4ab9edda8a
parent55d9405cbd91219e51e6602e7b8b4ebab4cda5e6
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