mirror of https://github.com/ARMmbed/mbed-os.git
3601b5ebb3
In the config store create test in test case #5 the amount of available memory is determined by fully allocating the heap. This is done multiple times to determine if there is a memory leak. This causes problems when even slight fragmentation occurs in the heap, since the size that can be allocated is decreased slightly, which the test flags as a memory leak. This patch makes memory leak detection more robust by using metrics provided by mbed_stats_heap_get. These metrics are an exact measurement of memory allocated is not changed by fragmentation. This allows the memory leak test to report correct values regardless of fragmentation. |
||
---|---|---|
.. | ||
TESTS | ||
cfstore | ||
flash-journal | ||
storage-volume-manager |