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

Cmocka tests with sanitizer errors still pass #100

Closed
PJK opened this issue Jun 23, 2019 · 0 comments · Fixed by #101
Closed

Cmocka tests with sanitizer errors still pass #100

PJK opened this issue Jun 23, 2019 · 0 comments · Fixed by #101

Comments

@PJK
Copy link
Owner

PJK commented Jun 23, 2019

E.g.

23: Test command: /tmp/build.Hz5D/test/type_7_encoders_test
23: Test timeout computed to be: 1500
23: [==========] Running 8 test(s).
23: [ RUN      ] test_bools
23: [       OK ] test_bools
23: [ RUN      ] test_null
23: [       OK ] test_null
23: [ RUN      ] test_undef
23: [       OK ] test_undef
23: [ RUN      ] test_break
23: [       OK ] test_break
23: [ RUN      ] test_half
23: [       OK ] test_half
23: [ RUN      ] test_float
23: [       OK ] test_float
23: [ RUN      ] test_double
23: [...]: runtime error: store to misaligned address 0x0001074d00c1 for type 'uint64_t' (aka 'unsigned long long'), which requires 8 byte alignment
23: 0x0001074d00c1: note: pointer points here
23:  00 00 00  fb 7f 7f ff ff 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00
23:               ^
23: SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior [...]
23: [       OK ] test_double
23: [ RUN      ] test_half_special
23: [       OK ] test_half_special
23: [==========] 8 test(s) run.
23: [  PASSED  ] 8 test(s).
23/25 Test #23: type_7_encoders_test .............   Passed    0.02 sec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant