]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/common: disable tests for commutativity of operator==()
authorKefu Chai <tchaikov@gmail.com>
Sat, 30 Jul 2022 04:27:37 +0000 (12:27 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sat, 30 Jul 2022 06:41:05 +0000 (14:41 +0800)
commitcfcab5a9ddff0d44766c80b117b9f6ad00ebc626
tree1b6b1b82f1778ac4e359c8fff4898cbc9d38e170
parentf987a841d779dacb0fb9f945d0d32000be9738ac
test/common: disable tests for commutativity of operator==()

older C++ compiler like GCC-9 does not rewrite operator==() so that
`a == b` implies `b == a`, in other words:
operator==(const LHS& lhs, const RHS& rhs) is equivalent to
operator==(const RHS& rhs, const LHS& lhs). see
section 1.2 in https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0515r3.pdf

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/test/common/test_static_ptr.cc