1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

6 Commits

Author SHA1 Message Date
561daaab81
tests/malloc: reduce defaut chunk size
This allows to automatically run the test on very constrained platforms such as arduino-uno (2KB RAM)
2019-11-26 15:21:47 +01:00
254f6ff9f9
tests/malloc: cleanup in test application
The idea is not fill the memory on the computer running a native instance and to be able to test on hardware. The test application is reworked similarly as the memarray test application. Macro are now overridable and printed at the beginnined of the test: this allows easier automatic testing
2019-11-20 06:44:30 +01:00
Benjamin Valentin
769fe44f6d tests/malloc: cleanup
- make local functions / variables static
- adhere to the 80 column limit
- don't increment total if head could not be allocated
- allow to overwrite CHUNK_SIZE
2019-09-13 00:35:47 +02:00
Gunar Schorcht
136849661a tests/malloc: fix of dereferencing a NULL pointer
If the memory is exhausted during the allocation of the new `head` structure, subsequent accesses to `head` will result in dereferencing of a NULL pointer.
2019-03-23 14:01:28 +01:00
Joakim Gebart
7b0ade0b75 tests/malloc: Replace tabs by spaces 2015-05-19 12:26:34 +02:00
Benjamin Valentin
39d73d753c resurrect malloc test 2014-11-05 12:11:24 +01:00