]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
unittest_cdc: fix test on big-endian hosts 35921/head
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Fri, 3 Jul 2020 13:57:59 +0000 (15:57 +0200)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Fri, 3 Jul 2020 13:57:59 +0000 (15:57 +0200)
commite26612d32bffa87f4eea670590f0b5eeb1ac29cf
tree52e2048132d8139d23a90d189cc148cb4d16cefc
parent319d123cfe5d6c8fb7de28ead84ecda48264558b
unittest_cdc: fix test on big-endian hosts

The specific_result test hardcodes a particular output.  However,
the input buffer used by the test is currently initialized to a
different byte string depending host the host byte order, which
makes the expected result not match on big-endian hosts.

Fixed by always initializing the input buffer to the same string.

Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
src/test/common/test_cdc.cc