Files
esp-idf/components/wpa_supplicant/test_apps
Sarvesh Bodakhe ecab81cf41 test(wifi): wait for the idle task after esp_wifi_deinit in Wi-Fi UTs
The Wi-Fi task deletes itself when esp_wifi_deinit() is called, and FreeRTOS
only reclaims its TCB and stack from the idle task afterwards. Test apps that
read the heap right after deinit therefore see that memory as still allocated
and report a leak, most visibly as the eloop unit tests failing on ESP32.

Wait for the idle task at every point where a test deinitialises Wi-Fi
before a leak check, replacing the single-tick delays that only matched what
esp_wifi_deinit() already waits for internally.

(cherry picked from commit bff264775a)
2026-09-07 15:46:12 +05:30
..

Supported Targets ESP32 ESP32-C2 ESP32-C3 ESP32-C5 ESP32-C6 ESP32-C61 ESP32-S2 ESP32-S3

wpa_supplicant unit test

To build and run this test app, using esp32s3 target for example:

idf.py set-target esp32s3
idf.py build flash monitor

To run tests using pytest:

idf.py set-target esp32s3
idf.py build
pytest --target=esp32s3