]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/librados: fix endian bugs in checksum test cases 37604/head
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Thu, 17 Sep 2020 13:52:54 +0000 (15:52 +0200)
committerNathan Cutler <ncutler@suse.com>
Thu, 8 Oct 2020 18:06:11 +0000 (20:06 +0200)
commit21fd7f4de27b5ed9d4c484ef7dc56231af6f335a
tree79a2974f7a107414590a91b64bdcdfb0e3952048
parent72e846aa6fb25df05a17ded0287ff0a59c579d7f
test/librados: fix endian bugs in checksum test cases

We're seeing test failures when running rados/test.sh in Teuthology
on a big-endian platform (IBM Z).  These are all related to calls
to the checksum operations, which expect little-endian inputs and
outputs, but are in many places called with native-endian types
from the test code.

One test case, LibRadosAio::RoundTrip3 in aio.cc, already uses
ceph_le types to address this problem, and this test actually
completes successfully on IBM Z.  This patch changes the other
test case performing checksum operations accordingly.

With this patch in place, rados/test.sh now completed successfully.

Fixes: https://tracker.ceph.com/issues/47516
Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
(cherry picked from commit 2e66216b0c5bdb0de350b9c40269f932fb009e68)
src/test/librados/c_read_operations.cc
src/test/librados/io.cc
src/test/librados/misc_cxx.cc