summaryrefslogtreecommitdiff
path: root/examples/kernel/thread_detach.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/kernel/thread_detach.c')
-rw-r--r--examples/kernel/thread_detach.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/kernel/thread_detach.c b/examples/kernel/thread_detach.c
index ac7a92558e..84c85977fb 100644
--- a/examples/kernel/thread_detach.c
+++ b/examples/kernel/thread_detach.c
@@ -91,6 +91,9 @@ static void _tc_cleanup()
/* 调度器解锁 */
rt_exit_critical();
+
+ /* 设置TestCase状态 */
+ tc_done(TC_STAT_PASSED);
}
int _tc_thread_detach()
@@ -100,7 +103,7 @@ int _tc_thread_detach()
thread_detach_init();
/* 返回TestCase运行的最长时间 */
- return 100;
+ return 25;
}
/* 输出函数命令到finsh shell中 */
FINSH_FUNCTION_EXPORT(_tc_thread_detach, a static thread example);