[riot-notifications] [RIOT-OS/RIOT] tests/malloc: fail if allocation count does not match (#15476)
notifications at github.com
Thu Nov 19 22:02:37 CET 2020
The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions.
### Contribution description
If we can't allocate the same amount of buffers in the second run, fail the test.
This indicates that not all buffers have been properly freed.
### Testing procedure
`tests/malloc` should still work, but will fail if you use the `oneway_malloc` module (you'll have to delete `sys/oneway-malloc/include/malloc.h` for it to compile)
### Issues/PRs references
discovered during #15474
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* tests/malloc: fail if allocation count does not match
-- File Changes --
M tests/malloc/main.c (16)
-- Patch Links --
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications