mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
change(bt): Perform comprehensive heap check in test_app for memory release
This commit is contained in:
@ -11,6 +11,7 @@
|
|||||||
#include "nvs_flash.h"
|
#include "nvs_flash.h"
|
||||||
|
|
||||||
#include "multi_heap.h"
|
#include "multi_heap.h"
|
||||||
|
#include "esp_heap_caps.h"
|
||||||
#include "freertos/FreeRTOS.h"
|
#include "freertos/FreeRTOS.h"
|
||||||
#include "freertos/task.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, "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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,4 +12,4 @@ from pytest_embedded import Dut
|
|||||||
def test_bt_memory_release(dut: Dut) -> None:
|
def test_bt_memory_release(dut: Dut) -> None:
|
||||||
dut.expect_exact('BLE Host Task Started', timeout=6)
|
dut.expect_exact('BLE Host Task Started', timeout=6)
|
||||||
dut.expect_exact('BLE Host Task Stopped', timeout=8)
|
dut.expect_exact('BLE Host Task Stopped', timeout=8)
|
||||||
dut.expect_exact('SUCCESS', timeout=10)
|
dut.expect_exact('Comprehensive heap check: SUCCESS', timeout=10)
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
|
CONFIG_HEAP_POISONING_COMPREHENSIVE=y
|
||||||
|
|
||||||
CONFIG_BT_ENABLED=y
|
CONFIG_BT_ENABLED=y
|
||||||
CONFIG_BT_NIMBLE_ENABLED=y
|
CONFIG_BT_NIMBLE_ENABLED=y
|
||||||
|
Reference in New Issue
Block a user