Explorar el Código

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

Rbb666 hace 2 meses
padre
commit
596f0a8c37
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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;
 }