forked from espressif/esp-idf
test(system): increased 200B memory leak thresh due to mmu mmap mutex
200B to extend the thresh, real increase to the memory usage will be smaller
This commit is contained in:
committed by
Armando (Dou Yiwen)
parent
6abf6f5196
commit
1abe57c987
@ -10,7 +10,7 @@
|
||||
#include "esp_newlib.h"
|
||||
|
||||
// iterator to load partition tables in `test spi bus lock, with flash` will lead memory not free
|
||||
#define TEST_MEMORY_LEAK_THRESHOLD (350)
|
||||
#define TEST_MEMORY_LEAK_THRESHOLD (450)
|
||||
|
||||
void setUp(void)
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@ -13,11 +13,11 @@
|
||||
* - traversing all vaddr range to check their attributes
|
||||
*
|
||||
* These tests need certain number of internal resources (heap memory), as they uses up the vaddr ranges
|
||||
* On ESP32, it should be around 450
|
||||
* On ESP32S2, it should be around 600
|
||||
* On other chips, it should be around 400
|
||||
* On ESP32, it should be around 650
|
||||
* On ESP32S2, it should be around 800
|
||||
* On other chips, it should be around 600
|
||||
*/
|
||||
#define TEST_MEMORY_LEAK_THRESHOLD (-650)
|
||||
#define TEST_MEMORY_LEAK_THRESHOLD (-800)
|
||||
|
||||
static size_t before_free_8bit;
|
||||
static size_t before_free_32bit;
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include "unity_test_runner.h"
|
||||
#include "esp_heap_caps.h"
|
||||
|
||||
#define TEST_MEMORY_LEAK_THRESHOLD (-700)
|
||||
#define TEST_MEMORY_LEAK_THRESHOLD (-750)
|
||||
|
||||
static size_t before_free_8bit;
|
||||
static size_t before_free_32bit;
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include "freertos/task.h"
|
||||
|
||||
// Some resources are lazy allocated, the threshold is left for that case
|
||||
#define TEST_MEMORY_LEAK_THRESHOLD (-900)
|
||||
#define TEST_MEMORY_LEAK_THRESHOLD (-1100)
|
||||
|
||||
static size_t before_free_8bit;
|
||||
static size_t before_free_32bit;
|
||||
|
Reference in New Issue
Block a user