mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
change(bt): Perform comprehensive heap check in test_app for memory release
This commit is contained in:
parent
124c3be72c
commit
ced444e49c
@ -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");
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -1,2 +1,4 @@
|
||||
CONFIG_HEAP_POISONING_COMPREHENSIVE=y
|
||||
|
||||
CONFIG_BT_ENABLED=y
|
||||
CONFIG_BT_NIMBLE_ENABLED=y
|
||||
|
Loading…
Reference in New Issue
Block a user