mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-10-27 11:34:09 +03:00
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.
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
[
|
||||
{
|
||||
"domain": "f25",
|
||||
"macs": [
|
||||
"00:11:22:33:44:55",
|
||||
"aa:bb:cc:00:11:22"
|
||||
]
|
||||
},
|
||||
{
|
||||
"domain": "f24",
|
||||
"macs": [
|
||||
"aa:bb:cc:dd:ee:ff",
|
||||
"a1:b2:c3:d4:e5:f6"
|
||||
]
|
||||
},
|
||||
{
|
||||
"domain": "f25",
|
||||
"macs": [
|
||||
"00:11:22:33:44:55",
|
||||
"aa:bb:cc:00:11:22"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user