mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
Merge branch 'fix/lightsleep_stress_task_leak_v5.4' into 'release/v5.4'
fix(esp_system): wait for idle after light sleep stress tasks (v5.4) See merge request espressif/esp-idf!52272
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2019-2024 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2019-2026 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -97,6 +97,7 @@ TEST_CASE("light sleep stress test", "[lightsleep]")
|
||||
xSemaphoreTake(done, portMAX_DELAY);
|
||||
#endif
|
||||
vSemaphoreDelete(done);
|
||||
vTaskDelay(10);
|
||||
}
|
||||
|
||||
static void timer_func(void* arg)
|
||||
@@ -125,6 +126,7 @@ TEST_CASE("light sleep stress test with periodic esp_timer", "[lightsleep]")
|
||||
vSemaphoreDelete(done);
|
||||
esp_timer_stop(timer);
|
||||
esp_timer_delete(timer);
|
||||
vTaskDelay(10);
|
||||
}
|
||||
#endif // !(CONFIG_SPIRAM) || (CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL >= 16384)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user