]> 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)
committerKefu Chai <kchai@redhat.com>
Fri, 8 Jan 2021 05:57:18 +0000 (13:57 +0800)
commitfe696638515dc7a51214930049ebd1a6f951047f
treed3b88aa290e192b47afaa0a87f98d8c57d30e277
parenta64b96dba14df1e61ee6eb449535a6ff4a9d64b3
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>
src/test/test_rbd_replay.cc