fix memory access error in list_tc() under bsp/simulator

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2550 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
rogerz.zhang@gmail.com
2012-12-29 08:11:38 +00:00
parent 50d95287cc
commit d573786d52
5 changed files with 17 additions and 25 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ void tc_thread_entry(void* parameter)
while (_tc_stat & TC_STAT_RUNNING)
{
for (index = _syscall_table_begin; index < _syscall_table_end; index ++)
for (index = _syscall_table_begin; index < _syscall_table_end; FINSH_NEXT_SYSCALL(index))
{
/* search testcase */
if (rt_strstr(index->name, _tc_prefix) == index->name)
@@ -158,7 +158,7 @@ void list_tc()
struct finsh_syscall* index;
rt_kprintf("TestCases List:\n");
for (index = _syscall_table_begin; index < _syscall_table_end; index ++)
for (index = _syscall_table_begin; index < _syscall_table_end; FINSH_NEXT_SYSCALL(index))
{
/* search testcase */
if (rt_strstr(index->name, "_tc_") == index->name)