Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail on big-endian arches #25

Open
QuLogic opened this issue Jun 14, 2019 · 0 comments
Open

Tests fail on big-endian arches #25

QuLogic opened this issue Jun 14, 2019 · 0 comments

Comments

@QuLogic
Copy link

QuLogic commented Jun 14, 2019

When building on s390x, tests fail:

--- FAIL: TestRefStrings (0.00s)
    murmur_test.go:41: [Hash32] key: 'hello', seed: '0': 0x84c85fd5 (want 0x248bfa47)
    murmur_test.go:48: [Hash32] key: 'hello', seed: '0': 84c85fd5 (want 248bfa47)
    murmur_test.go:52: [Hash32] key 'hello', seed: '0': 0x84c85fd5 (want 0x248bfa47)
    murmur_test.go:41: [Hash32] key: 'hello, world', seed: '0': 0xa98a45f8 (want 0x149bbb7f)
    murmur_test.go:48: [Hash32] key: 'hello, world', seed: '0': a98a45f8 (want 149bbb7f)
    murmur_test.go:52: [Hash32] key 'hello, world', seed: '0': 0xa98a45f8 (want 0x149bbb7f)
    murmur_test.go:41: [Hash32] key: '19 Jan 2038 at 3:14:07 AM', seed: '0': 0xa74dd6ac (want 0xe31e8a70)
    murmur_test.go:48: [Hash32] key: '19 Jan 2038 at 3:14:07 AM', seed: '0': a74dd6ac (want e31e8a70)
    murmur_test.go:52: [Hash32] key '19 Jan 2038 at 3:14:07 AM', seed: '0': 0xa74dd6ac (want 0xe31e8a70)
    murmur_test.go:58: '[Hash64] key: '19 Jan 2038 at 3:14:07 AM', seed: '0': 0xcef175caccc2d982 (want 0xb89e5988b737affc)
    murmur_test.go:65: [Hash64] key: '19 Jan 2038 at 3:14:07 AM', seed: '0': cef175caccc2d982 (want b89e5988b737affc)
    murmur_test.go:69: [Hash64] key: '19 Jan 2038 at 3:14:07 AM', seed: '0': 0xcef175caccc2d982 (want 0xb89e5988b737affc)
    murmur_test.go:76: [Hash128] key: '19 Jan 2038 at 3:14:07 AM', seed: '0': 0xcef175caccc2d982-0x43fd5acb8ce000a8 (want 0xb89e5988b737affc-0x664fc2950231b2cb)
    murmur_test.go:83: [Hash128] key: '19 Jan 2038 at 3:14:07 AM', seed: '0': cef175caccc2d98243fd5acb8ce000a8 (want b89e5988b737affc664fc2950231b2cb)
    murmur_test.go:87: [Hash128] key: '19 Jan 2038 at 3:14:07 AM', seed: '0': 0xcef175caccc2d982-0x43fd5acb8ce000a8 (want 0xb89e5988b737affc-0x664fc2950231b2cb)
    murmur_test.go:41: [Hash32] key: 'The quick brown fox jumps over the lazy dog.', seed: '0': 0x4f6a2b71 (want 0xd5c48bfc)
    murmur_test.go:48: [Hash32] key: 'The quick brown fox jumps over the lazy dog.', seed: '0': 4f6a2b71 (want d5c48bfc)
    murmur_test.go:52: [Hash32] key 'The quick brown fox jumps over the lazy dog.', seed: '0': 0x4f6a2b71 (want 0xd5c48bfc)
    murmur_test.go:58: '[Hash64] key: 'The quick brown fox jumps over the lazy dog.', seed: '0': 0xa9dcb521e865357b (want 0xcd99481f9ee902c9)
    murmur_test.go:65: [Hash64] key: 'The quick brown fox jumps over the lazy dog.', seed: '0': a9dcb521e865357b (want cd99481f9ee902c9)
    murmur_test.go:69: [Hash64] key: 'The quick brown fox jumps over the lazy dog.', seed: '0': 0xa9dcb521e865357b (want 0xcd99481f9ee902c9)
    murmur_test.go:76: [Hash128] key: 'The quick brown fox jumps over the lazy dog.', seed: '0': 0xa9dcb521e865357b-0x31929daa7f2d439e (want 0xcd99481f9ee902c9-0x695da1a38987b6e7)
    murmur_test.go:83: [Hash128] key: 'The quick brown fox jumps over the lazy dog.', seed: '0': a9dcb521e865357b31929daa7f2d439e (want cd99481f9ee902c9695da1a38987b6e7)
    murmur_test.go:87: [Hash128] key: 'The quick brown fox jumps over the lazy dog.', seed: '0': 0xa9dcb521e865357b-0x31929daa7f2d439e (want 0xcd99481f9ee902c9-0x695da1a38987b6e7)
    murmur_test.go:41: [Hash32] key: 'hello', seed: '1': 0x3abb1755 (want 0xbb4abcad)
    murmur_test.go:48: [Hash32] key: 'hello', seed: '1': 3abb1755 (want bb4abcad)
    murmur_test.go:52: [Hash32] key 'hello', seed: '1': 0x3abb1755 (want 0xbb4abcad)
    murmur_test.go:41: [Hash32] key: 'hello, world', seed: '1': 0x603764bb (want 0x6f5cb2e9)
    murmur_test.go:48: [Hash32] key: 'hello, world', seed: '1': 603764bb (want 6f5cb2e9)
    murmur_test.go:52: [Hash32] key 'hello, world', seed: '1': 0x603764bb (want 0x6f5cb2e9)
    murmur_test.go:41: [Hash32] key: '19 Jan 2038 at 3:14:07 AM', seed: '1': 0x4a7fcb64 (want 0xf50e1f30)
    murmur_test.go:48: [Hash32] key: '19 Jan 2038 at 3:14:07 AM', seed: '1': 4a7fcb64 (want f50e1f30)
    murmur_test.go:52: [Hash32] key '19 Jan 2038 at 3:14:07 AM', seed: '1': 0x4a7fcb64 (want 0xf50e1f30)
    murmur_test.go:58: '[Hash64] key: '19 Jan 2038 at 3:14:07 AM', seed: '1': 0x9c2486a8436dc6d4 (want 0x2a929de9c8f97b2f)
    murmur_test.go:65: [Hash64] key: '19 Jan 2038 at 3:14:07 AM', seed: '1': 9c2486a8436dc6d4 (want 2a929de9c8f97b2f)
    murmur_test.go:69: [Hash64] key: '19 Jan 2038 at 3:14:07 AM', seed: '1': 0x9c2486a8436dc6d4 (want 0x2a929de9c8f97b2f)
    murmur_test.go:76: [Hash128] key: '19 Jan 2038 at 3:14:07 AM', seed: '1': 0x9c2486a8436dc6d4-0x8b246db6d41ca4cd (want 0x2a929de9c8f97b2f-0x56a41d99af43a2db)
    murmur_test.go:83: [Hash128] key: '19 Jan 2038 at 3:14:07 AM', seed: '1': 9c2486a8436dc6d48b246db6d41ca4cd (want 2a929de9c8f97b2f56a41d99af43a2db)
    murmur_test.go:87: [Hash128] key: '19 Jan 2038 at 3:14:07 AM', seed: '1': 0x9c2486a8436dc6d4-0x8b246db6d41ca4cd (want 0x2a929de9c8f97b2f-0x56a41d99af43a2db)
    murmur_test.go:41: [Hash32] key: 'The quick brown fox jumps over the lazy dog.', seed: '1': 0x30ce84fd (want 0x846f6a36)
    murmur_test.go:48: [Hash32] key: 'The quick brown fox jumps over the lazy dog.', seed: '1': 30ce84fd (want 846f6a36)
    murmur_test.go:52: [Hash32] key 'The quick brown fox jumps over the lazy dog.', seed: '1': 0x30ce84fd (want 0x846f6a36)
    murmur_test.go:58: '[Hash64] key: 'The quick brown fox jumps over the lazy dog.', seed: '1': 0x628443d6482f2887 (want 0xfb3325171f9744da)
    murmur_test.go:65: [Hash64] key: 'The quick brown fox jumps over the lazy dog.', seed: '1': 628443d6482f2887 (want fb3325171f9744da)
    murmur_test.go:69: [Hash64] key: 'The quick brown fox jumps over the lazy dog.', seed: '1': 0x628443d6482f2887 (want 0xfb3325171f9744da)
    murmur_test.go:76: [Hash128] key: 'The quick brown fox jumps over the lazy dog.', seed: '1': 0x628443d6482f2887-0x3dde79f9da7a3d93 (want 0xfb3325171f9744da-0xaaf8b92a5f722952)
    murmur_test.go:83: [Hash128] key: 'The quick brown fox jumps over the lazy dog.', seed: '1': 628443d6482f28873dde79f9da7a3d93 (want fb3325171f9744daaaf8b92a5f722952)
    murmur_test.go:87: [Hash128] key: 'The quick brown fox jumps over the lazy dog.', seed: '1': 0x628443d6482f2887-0x3dde79f9da7a3d93 (want 0xfb3325171f9744da-0xaaf8b92a5f722952)
    murmur_test.go:41: [Hash32] key: 'hello', seed: '42': 0xb4fc956f (want 0xe2dbd2e1)
    murmur_test.go:48: [Hash32] key: 'hello', seed: '42': b4fc956f (want e2dbd2e1)
    murmur_test.go:52: [Hash32] key 'hello', seed: '42': 0xb4fc956f (want 0xe2dbd2e1)
    murmur_test.go:41: [Hash32] key: 'hello, world', seed: '42': 0x8cdde10 (want 0x7ec7c6c2)
    murmur_test.go:48: [Hash32] key: 'hello, world', seed: '42': 08cdde10 (want 7ec7c6c2)
    murmur_test.go:52: [Hash32] key 'hello, world', seed: '42': 0x8cdde10 (want 0x7ec7c6c2)
    murmur_test.go:41: [Hash32] key: '19 Jan 2038 at 3:14:07 AM', seed: '42': 0x4e1b5ffd (want 0x58f745f6)
    murmur_test.go:48: [Hash32] key: '19 Jan 2038 at 3:14:07 AM', seed: '42': 4e1b5ffd (want 58f745f6)
    murmur_test.go:52: [Hash32] key '19 Jan 2038 at 3:14:07 AM', seed: '42': 0x4e1b5ffd (want 0x58f745f6)
    murmur_test.go:58: '[Hash64] key: '19 Jan 2038 at 3:14:07 AM', seed: '42': 0x74da3b584f708419 (want 0xfd8f19ebdc8c6b6a)
    murmur_test.go:65: [Hash64] key: '19 Jan 2038 at 3:14:07 AM', seed: '42': 74da3b584f708419 (want fd8f19ebdc8c6b6a)
    murmur_test.go:69: [Hash64] key: '19 Jan 2038 at 3:14:07 AM', seed: '42': 0x74da3b584f708419 (want 0xfd8f19ebdc8c6b6a)
    murmur_test.go:76: [Hash128] key: '19 Jan 2038 at 3:14:07 AM', seed: '42': 0x74da3b584f708419-0x70bc8f344c720268 (want 0xfd8f19ebdc8c6b6a-0xd30fdc310fa08ff9)
    murmur_test.go:83: [Hash128] key: '19 Jan 2038 at 3:14:07 AM', seed: '42': 74da3b584f70841970bc8f344c720268 (want fd8f19ebdc8c6b6ad30fdc310fa08ff9)
BUILDSTDERR:     murmur_test.go:87: [Hash128] key: '19 Jan 2038 at 3:14:07 AM', seed: '42': 0x74da3b584f7error: Bad exit status from /var/tmp/rpm-tmp.nLSukM (%check)
BUILDSTDERR:     Bad exit status from /var/tmp/rpm-tmp.nLSukM (%check)
08419-0x70bc8f344c720268 (want 0xfd8f19ebdc8c6b6a-0xd30fdc310fa08ff9)
    murmur_test.go:41: [Hash32] key: 'The quick brown fox jumps over the lazy dog.', seed: '42': 0xb30cdd6a (want 0xc02d1434)
    murmur_test.go:48: [Hash32] key: 'The quick brown fox jumps over the lazy dog.', seed: '42': b30cdd6a (want c02d1434)
    murmur_test.go:52: [Hash32] key 'The quick brown fox jumps over the lazy dog.', seed: '42': 0xb30cdd6a (want 0xc02d1434)
    murmur_test.go:58: '[Hash64] key: 'The quick brown fox jumps over the lazy dog.', seed: '42': 0x273479948464724d (want 0x74f33c659cda5af7)
    murmur_test.go:65: [Hash64] key: 'The quick brown fox jumps over the lazy dog.', seed: '42': 273479948464724d (want 74f33c659cda5af7)
    murmur_test.go:69: [Hash64] key: 'The quick brown fox jumps over the lazy dog.', seed: '42': 0x273479948464724d (want 0x74f33c659cda5af7)
    murmur_test.go:76: [Hash128] key: 'The quick brown fox jumps over the lazy dog.', seed: '42': 0x273479948464724d-0x41792c09e77ee500 (want 0x74f33c659cda5af7-0x4ec7a891caf316f0)
    murmur_test.go:83: [Hash128] key: 'The quick brown fox jumps over the lazy dog.', seed: '42': 273479948464724d41792c09e77ee500 (want 74f33c659cda5af74ec7a891caf316f0)
    murmur_test.go:87: [Hash128] key: 'The quick brown fox jumps over the lazy dog.', seed: '42': 0x273479948464724d-0x41792c09e77ee500 (want 0x74f33c659cda5af7-0x4ec7a891caf316f0)
hel|lo|
hel|lo, wo|rld|
19 |Jan 20|38 at 3:14:0|7 AM|
The| quick| brown fox j|umps over the lazy dog.|
hel|lo|
hel|lo, wo|rld|
19 |Jan 20|38 at 3:14:0|7 AM|
The| quick| brown fox j|umps over the lazy dog.|
hel|lo|
hel|lo, wo|rld|
19 |Jan 20|38 at 3:14:0|7 AM|
The| quick| brown fox j|umps over the lazy dog.|
--- FAIL: TestIncremental (0.00s)
    murmur_test.go:109: [Hash32] key: 'hello', seed: '0': 0x84c85fd5 (want 0x248bfa47)
    murmur_test.go:109: [Hash32] key: 'hello, world', seed: '0': 0xa98a45f8 (want 0x149bbb7f)
    murmur_test.go:109: [Hash32] key: '19 Jan 2038 at 3:14:07 AM', seed: '0': 0xa74dd6ac (want 0xe31e8a70)
    murmur_test.go:112: [Hash128] key: '19 Jan 2038 at 3:14:07 AM', seed: '0': 0xcef175caccc2d982-0x43fd5acb8ce000a8 (want 0xb89e5988b737affc-0x664fc2950231b2cb)
    murmur_test.go:109: [Hash32] key: 'The quick brown fox jumps over the lazy dog.', seed: '0': 0x4f6a2b71 (want 0xd5c48bfc)
    murmur_test.go:112: [Hash128] key: 'The quick brown fox jumps over the lazy dog.', seed: '0': 0xa9dcb521e865357b-0x31929daa7f2d439e (want 0xcd99481f9ee902c9-0x695da1a38987b6e7)
    murmur_test.go:109: [Hash32] key: 'hello', seed: '1': 0x3abb1755 (want 0xbb4abcad)
    murmur_test.go:109: [Hash32] key: 'hello, world', seed: '1': 0x603764bb (want 0x6f5cb2e9)
    murmur_test.go:109: [Hash32] key: '19 Jan 2038 at 3:14:07 AM', seed: '1': 0x4a7fcb64 (want 0xf50e1f30)
    murmur_test.go:112: [Hash128] key: '19 Jan 2038 at 3:14:07 AM', seed: '1': 0x9c2486a8436dc6d4-0x8b246db6d41ca4cd (want 0x2a929de9c8f97b2f-0x56a41d99af43a2db)
    murmur_test.go:109: [Hash32] key: 'The quick brown fox jumps over the lazy dog.', seed: '1': 0x30ce84fd (want 0x846f6a36)
    murmur_test.go:112: [Hash128] key: 'The quick brown fox jumps over the lazy dog.', seed: '1': 0x628443d6482f2887-0x3dde79f9da7a3d93 (want 0xfb3325171f9744da-0xaaf8b92a5f722952)
    murmur_test.go:109: [Hash32] key: 'hello', seed: '42': 0xb4fc956f (want 0xe2dbd2e1)
    murmur_test.go:109: [Hash32] key: 'hello, world', seed: '42': 0x8cdde10 (want 0x7ec7c6c2)
    murmur_test.go:109: [Hash32] key: '19 Jan 2038 at 3:14:07 AM', seed: '42': 0x4e1b5ffd (want 0x58f745f6)
    murmur_test.go:112: [Hash128] key: '19 Jan 2038 at 3:14:07 AM', seed: '42': 0x74da3b584f708419-0x70bc8f344c720268 (want 0xfd8f19ebdc8c6b6a-0xd30fdc310fa08ff9)
    murmur_test.go:109: [Hash32] key: 'The quick brown fox jumps over the lazy dog.', seed: '42': 0xb30cdd6a (want 0xc02d1434)
    murmur_test.go:112: [Hash128] key: 'The quick brown fox jumps over the lazy dog.', seed: '42': 0x273479948464724d-0x41792c09e77ee500 (want 0x74f33c659cda5af7-0x4ec7a891caf316f0)
FAIL

I'm fairly certain that murmur2 is not endian-neutral, so using the same hash result as little-endian won't work. MurmerHash3 should be endian-neutral, so maybe this has to do with #11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant