Explorar o código

esp32: Fix race in "TLS Test" where s_task can go out of scope before cleanup finishes

Probable cause for CI failures of "LoadStoreError" after this task finishes running.
Angus Gratton %!s(int64=7) %!d(string=hai) anos
pai
achega
7313f3f925
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      components/freertos/test/test_thread_local.c

+ 2 - 0
components/freertos/test/test_thread_local.c

@@ -102,4 +102,6 @@ TEST_CASE("TLS test", "[freertos]")
     while (running[0] || running[1]) {
         vTaskDelay(10);
     }
+    vTaskDelay(10); /* Make sure idle task can clean up s_task, before it goes out of scope */
 }
+