Skip to content

Fix failures in isc netmgr_test on big endian machines

Ondřej Surý requested to merge 2801-unittest-isc-netmgr-s390x-v9_18 into v9_18

Typing from libuv structure to isc_region_t is not possible, because their sizes differ on 64 bit architectures. Little endian machines seems to be lucky and still result in test passed. But big endian machine such as s390x fails the test reliably.

Fix by directly creating the buffer as isc_region_t and skipping the type conversion. More readable and still more correct.

(cherry picked from commit 057438cb)

Closes #2801 (closed)

Merge request reports