]> 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:52:19 +0000 (11:52 +0200)
commit103426118ecb05a8ca749eae969b0450de38452f
treeb7308e20788f8487d0971ea1255c2c5769eea4cc
parent12db92636bffe3e11ee07f5cc48e383f0a3a34e2
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