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>
p.set_length(l);
char *b = p.c_str();
for (size_t i = 0; i < l / sizeof(uint64_t); ++i) {
- ((uint64_t*)b)[i] = engine();
+ ((ceph_le64 *)b)[i] = init_le64(engine());
}
outbl->append(p);
}