]> xenbits.xensource.com Git - libvirt.git/commit
tests: deterministichash: Make hash tables arch-independent
authorPeter Krempa <pkrempa@redhat.com>
Wed, 2 Aug 2017 15:23:51 +0000 (17:23 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 3 Aug 2017 07:54:36 +0000 (09:54 +0200)
commitf536b0dd7318c736c20ae646209671011d16c12c
treee3ec5fb343fd6d7638a5d51d02c0df4ac094b063
parent0b1ecf7b5342f8631d1b1cce8a7937bda511be98
tests: deterministichash: Make hash tables arch-independent

It turns out that our implementation of the hashing function is
endian-dependent and thus if used on various architectures the testsuite
may have different results. Work this around by mocking virHashCodeGen
to something which does not use bit operations instead of just setting a
deterministic seed.
tests/qemumonitorjsondata/qemumonitorjson-nodename-relative.result
tests/qemumonitorjsondata/qemumonitorjson-nodename-same-backing.result
tests/virdeterministichashmock.c
tests/virmacmaptestdata/simple2.json