]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/librados: fix endian bugs in checksum test cases 37215/head
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Thu, 17 Sep 2020 13:52:54 +0000 (15:52 +0200)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Thu, 17 Sep 2020 13:52:54 +0000 (15:52 +0200)
commit2e66216b0c5bdb0de350b9c40269f932fb009e68
tree85a1b124b676e28cef70f6295f8e2f7d406385e3
parentf09fb275a77c55c7fd1af228efdce17f2e7ab7b0
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>
src/test/librados/c_read_operations.cc
src/test/librados/io.cc
src/test/librados/misc_cxx.cc