]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/librados: fix endian bugs in checksum test cases 37605/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:41 +0000 (20:06 +0200)
commit68f82de0d273b4dcadda44c377689a6b96c5be39
tree7cca03acee68cc1fb2705abfca8f0653af524855
parent366022d6e7c26aca7f180cbb4ecb971c965f1047
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