Просмотр исходного кода

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 7 лет назад
Родитель
Сommit
7313f3f925
1 измененных файлов с 2 добавлено и 0 удалено
  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 */
 }
+