change(bt): Perform comprehensive heap check in test_app for memory release

This commit is contained in:
Wang Mengyang 2024-07-30 17:18:41 +08:00
parent 124c3be72c
commit ced444e49c
3 changed files with 7 additions and 2 deletions

View File

@ -11,6 +11,7 @@
#include "nvs_flash.h"
#include "multi_heap.h"
#include "esp_heap_caps.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
@ -127,5 +128,7 @@ void app_main(void)
}
ESP_LOGI(tag, "Free heap size increased by %"PRIu32" bytes", free_after - free_before);
ESP_LOGI(tag, "SUCCESS");
if (heap_caps_check_integrity_all(true)) {
ESP_LOGI(tag, "Comprehensive heap check: SUCCESS");
}
}

View File

@ -12,4 +12,4 @@ from pytest_embedded import Dut
def test_bt_memory_release(dut: Dut) -> None:
dut.expect_exact('BLE Host Task Started', timeout=6)
dut.expect_exact('BLE Host Task Stopped', timeout=8)
dut.expect_exact('SUCCESS', timeout=10)
dut.expect_exact('Comprehensive heap check: SUCCESS', timeout=10)

View File

@ -1,2 +1,4 @@
CONFIG_HEAP_POISONING_COMPREHENSIVE=y
CONFIG_BT_ENABLED=y
CONFIG_BT_NIMBLE_ENABLED=y