update testcase for kernel.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1849 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong@gmail.com
2011-12-19 07:08:06 +00:00
parent 212d828d3f
commit d28cdf68d9
9 changed files with 130 additions and 12 deletions
+4 -1
View File
@@ -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);