[riot-notifications] [RIOT-OS/RIOT] tests/malloc: fail if allocation count does not match (#15476)

benpicco 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:

  https://github.com/RIOT-OS/RIOT/pull/15476

-- Commit Summary --

  * tests/malloc: fail if allocation count does not match

-- File Changes --

    M tests/malloc/main.c (16)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/15476.patch
https://github.com/RIOT-OS/RIOT/pull/15476.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15476
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201119/cd7688de/attachment.htm>


More information about the notifications mailing list