Pārlūkot izejas kodu

action:Fixed assertion failure when running utest/messagequeue_tc multiple times.

Rbb666 2 mēneši atpakaļ
vecāks
revīzija
596f0a8c37
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      src/utest/messagequeue_tc.c

+ 4 - 0
src/utest/messagequeue_tc.c

@@ -220,6 +220,10 @@ static rt_err_t utest_tc_init(void)
 
 static rt_err_t utest_tc_cleanup(void)
 {
+    /* wait for threads to finish */
+    rt_thread_mdelay(100);
+    /* detach event object */
+    rt_event_detach(&finish_e);
     return RT_EOK;
 }