From d28cdf68d923b355d144029f6aeb0aa405f3ab3f Mon Sep 17 00:00:00 2001 From: "bernard.xiong@gmail.com" Date: Mon, 19 Dec 2011 07:08:06 +0000 Subject: update testcase for kernel. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1849 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- examples/kernel/thread_detach.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'examples/kernel/thread_detach.c') 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); -- cgit v1.3.1