diff options
Diffstat (limited to 'examples/utest')
| -rw-r--r-- | examples/utest/README.md | 6 | ||||
| -rw-r--r-- | examples/utest/testcases/posix/pthread_h/functions/testfrmw/threads_scenarii.c | 8 | ||||
| -rw-r--r-- | examples/utest/testcases/posix/stdio_h/functions/fclose_tc.c | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/examples/utest/README.md b/examples/utest/README.md index bde3bd4b80..6e24632b7c 100644 --- a/examples/utest/README.md +++ b/examples/utest/README.md @@ -2,7 +2,7 @@ ## 简介 -为了保证某一部分代码的质量,通常可以通过编写测试用例的方式,验证此代码的功能。为了保证 RT-Thread 相关仓库的代码质量,我们基于 utest 框架搭建了一套简易的自动化测试环境。有兴趣,有精力的小伙伴可以利用这套机制完善自己的代码检查。如果有意愿让社区上更多的小伙伴收益,也可以在提交代码的时候,把对应的测试用例也提交上来。 +为了保证某一部分代码的质量,通常可以通过编写测试用例的方式,验证此代码的功能。为了保证 RT-Thread 相关仓库的代码质量,我们基于 utest 框架搭建了一套简易的自动化测试环境。有兴趣,有精力的小伙伴可以利用这套机制完善自己的代码检查。如果有意愿让社区上更多的小伙伴受益,也可以在提交代码的时候,把对应的测试用例也提交上来。 ## 目录结构 @@ -15,7 +15,7 @@ ### 1. 编写测试用例 -参考已有的测试用例在 [examples\utest\testcases](./testcases) 目录下添加自己的测试用例。测试用例的编写方法参考文档中心《utest 测试框架》章节。 +参考已有的测试用例在 [examples\utest\testcases](./testcases) 目录下添加自己的测试用例。测试用例的编写方法参考文档中心[《utest 测试框架》章节](https://www.rt-thread.org/document/site/#/rt-thread-version/rt-thread-standard/programming-manual/utest/utest)。 ### 2. 本地测试 @@ -70,4 +70,4 @@ CONFIG_RT_USING_MEMHEAP=y - {UTEST: "components/utest", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", CONFIG_FILE: "utest_self/self.conf", SD_FILE: "sd.bin"} ``` -3. 向 RT-Thread 主仓库提交合并请求。
\ No newline at end of file +3. 向 RT-Thread 主仓库提交合并请求。 diff --git a/examples/utest/testcases/posix/pthread_h/functions/testfrmw/threads_scenarii.c b/examples/utest/testcases/posix/pthread_h/functions/testfrmw/threads_scenarii.c index 3f5a9845cf..f4976388e0 100644 --- a/examples/utest/testcases/posix/pthread_h/functions/testfrmw/threads_scenarii.c +++ b/examples/utest/testcases/posix/pthread_h/functions/testfrmw/threads_scenarii.c @@ -246,7 +246,7 @@ static void scenar_init(void) " PTHREAD_CREATE_JOINABLE"); } #if VERBOSE > 4 - output("Detach state was set sucessfully\n"); + output("Detach state was set successfully\n"); #endif /* Sched related attributes */ @@ -269,7 +269,7 @@ static void scenar_init(void) UNRESOLVED(ret, "Unable to set inheritsched" " attribute"); #if VERBOSE > 4 - output("inheritsched state was set sucessfully\n"); + output("inheritsched state was set successfully\n"); #endif } #if VERBOSE > 4 @@ -292,7 +292,7 @@ static void scenar_init(void) " sched policy"); #if VERBOSE > 4 if (scenarii[i].schedpolicy) - output("Sched policy was set sucessfully\n"); + output("Sched policy was set successfully\n"); else output("Sched policy untouched\n"); #endif @@ -323,7 +323,7 @@ static void scenar_init(void) "Failed to set the sched param"); #if VERBOSE > 4 - output("Sched param was set sucessfully to %i\n", + output("Sched param was set successfully to %i\n", sp.sched_priority); } else { output("Sched param untouched\n"); diff --git a/examples/utest/testcases/posix/stdio_h/functions/fclose_tc.c b/examples/utest/testcases/posix/stdio_h/functions/fclose_tc.c index c182283bbd..fef2235d4b 100644 --- a/examples/utest/testcases/posix/stdio_h/functions/fclose_tc.c +++ b/examples/utest/testcases/posix/stdio_h/functions/fclose_tc.c @@ -16,7 +16,7 @@ static int fclose_entry(void) } else { - printf("fclose sucess \n"); + printf("fclose success \n"); } return 0; } |
