1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/memarray
Vincent Dupont 97cfd1e512 memarray: fix memarray init
If memarray data is not initialized to 0 (for instance during a
re-init). The last element of the array is not properly cleared thus
leading to returning an invalid pointer when everything is allocated.
2020-03-09 17:56:34 +01:00
..
tests memarray: fix memarray init 2020-03-09 17:56:34 +01:00
main.c memarray: fix memarray init 2020-03-09 17:56:34 +01:00
Makefile memarray: add fixed-size block allocator test 2018-04-10 14:37:29 +02:00
README.md memarray: add fixed-size block allocator test 2018-04-10 14:37:29 +02:00

Expected result

This application should run a number of tests equal to NUMBER_OF_TESTS (Default 12).

At the beginning of the tests memory usage of each thread is printed. At the end of the tests, the threads memory usage is printed once more time.

This test is passed if the memory used by the main thread remains static.

Background

The module memarray is the fixed-size block allocator for RIOT-OS.

This test application is therefore specialized for only testing the use of the module.

This is also inspired by test/malloc.