]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/test_rbd_replay: move operator<<(..rbd_loc& name) to rbd_replay
authorKefu Chai <kchai@redhat.com>
Fri, 8 Jan 2021 05:42:18 +0000 (13:42 +0800)
committerCasey Bodley <cbodley@redhat.com>
Wed, 11 May 2022 17:11:56 +0000 (13:11 -0400)
commitbb906e475d68b74ba2d7d8277f1ee11689153fa1
tree01df809537e6e525b6c8b8c162c2035ba19796d1
parent148a6d99d80f0576150d56a02045a8f242016724
test/test_rbd_replay: move operator<<(..rbd_loc& name) to rbd_replay

so gtest can print out rbd_loc when printing out diagnostic information
when test fails. after moving operator<<(ostream&, const rbd_loc&) to
the `rbd_replay` namespace, ADL is able to find it. for more details on
the lookup rules, see https://en.cppreference.com/w/cpp/language/adl

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit fe696638515dc7a51214930049ebd1a6f951047f)
src/test/test_rbd_replay.cc