Skip to content

Commit 1abe57c

Browse files
committed
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
1 parent 6abf6f5 commit 1abe57c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

components/esp_driver_spi/test_apps/master/main/test_app_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "esp_newlib.h"
1111

1212
// iterator to load partition tables in `test spi bus lock, with flash` will lead memory not free
13-
#define TEST_MEMORY_LEAK_THRESHOLD (350)
13+
#define TEST_MEMORY_LEAK_THRESHOLD (450)
1414

1515
void setUp(void)
1616
{

components/esp_mm/test_apps/mmap_hw/main/test_app_main.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -13,11 +13,11 @@
1313
* - traversing all vaddr range to check their attributes
1414
*
1515
* These tests need certain number of internal resources (heap memory), as they uses up the vaddr ranges
16-
* On ESP32, it should be around 450
17-
* On ESP32S2, it should be around 600
18-
* On other chips, it should be around 400
16+
* On ESP32, it should be around 650
17+
* On ESP32S2, it should be around 800
18+
* On other chips, it should be around 600
1919
*/
20-
#define TEST_MEMORY_LEAK_THRESHOLD (-650)
20+
#define TEST_MEMORY_LEAK_THRESHOLD (-800)
2121

2222
static size_t before_free_8bit;
2323
static size_t before_free_32bit;

components/esp_psram/test_apps/psram/main/test_app_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "unity_test_runner.h"
99
#include "esp_heap_caps.h"
1010

11-
#define TEST_MEMORY_LEAK_THRESHOLD (-700)
11+
#define TEST_MEMORY_LEAK_THRESHOLD (-750)
1212

1313
static size_t before_free_8bit;
1414
static size_t before_free_32bit;

components/esp_system/test_apps/esp_system_unity_tests/main/test_app_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "freertos/task.h"
1212

1313
// Some resources are lazy allocated, the threshold is left for that case
14-
#define TEST_MEMORY_LEAK_THRESHOLD (-900)
14+
#define TEST_MEMORY_LEAK_THRESHOLD (-1100)
1515

1616
static size_t before_free_8bit;
1717
static size_t before_free_32bit;

0 commit comments

Comments
 (0)