diff options
| author | [email protected] <[email protected]> | 2011-12-19 07:08:06 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2011-12-19 07:08:06 +0000 |
| commit | d28cdf68d923b355d144029f6aeb0aa405f3ab3f (patch) | |
| tree | c7add4950886cbe726a0f43b914712fc48d0c1a4 /examples/kernel/thread_detach.c | |
| parent | 212d828d3ff4dd0f57e2d2a54a9096f00eb88535 (diff) | |
update testcase for kernel.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1849 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'examples/kernel/thread_detach.c')
| -rw-r--r-- | examples/kernel/thread_detach.c | 5 |
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);
|
