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:
armando
2025-04-03 10:31:50 +08:00
committed by Armando (Dou Yiwen)
parent 6abf6f5196
commit 1abe57c987
4 changed files with 8 additions and 8 deletions

View File

@@ -10,7 +10,7 @@
#include "esp_newlib.h" #include "esp_newlib.h"
// iterator to load partition tables in `test spi bus lock, with flash` will lead memory not free // 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) void setUp(void)
{ {

View File

@@ -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 * SPDX-License-Identifier: Apache-2.0
*/ */
@@ -13,11 +13,11 @@
* - traversing all vaddr range to check their attributes * - 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 * 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 ESP32, it should be around 650
* On ESP32S2, it should be around 600 * On ESP32S2, it should be around 800
* On other chips, it should be around 400 * 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_8bit;
static size_t before_free_32bit; static size_t before_free_32bit;

View File

@@ -8,7 +8,7 @@
#include "unity_test_runner.h" #include "unity_test_runner.h"
#include "esp_heap_caps.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_8bit;
static size_t before_free_32bit; static size_t before_free_32bit;

View File

@@ -11,7 +11,7 @@
#include "freertos/task.h" #include "freertos/task.h"
// Some resources are lazy allocated, the threshold is left for that case // 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_8bit;
static size_t before_free_32bit; static size_t before_free_32bit;