diff --git a/test/suit_task.c b/test/suit_task.c index a0214d8a..c6f41c85 100644 --- a/test/suit_task.c +++ b/test/suit_task.c @@ -112,7 +112,7 @@ TEST test_tos_task_delay_abort(void) ASSERT_EQ(test_count, 0); - // yeild cpu to test_task_00 + // yield cpu to test_task_00 err = tos_task_delay(100); ASSERT_EQ(err, K_ERR_NONE); @@ -121,7 +121,7 @@ TEST test_tos_task_delay_abort(void) // abort test_task_00's huge delay err = tos_task_delay_abort(&test_task_00); - // yeild cpu to test_task_00 + // yield cpu to test_task_00 tos_task_delay(100); // test_count should be increased, and test_task_00 will be trapped into the huge delay again @@ -151,7 +151,7 @@ TEST test_tos_task_suspend_resume(void) 0); ASSERT_EQ(err, K_ERR_NONE); - // yeild cpu to test_task_00 + // yield cpu to test_task_00 tos_task_delay(500); // suspend test_task_00 @@ -161,7 +161,7 @@ TEST test_tos_task_suspend_resume(void) // cache the current test_count test_count_cache = test_count; - // yeild cpu, test_task_00 is suspended, so test_count should no more increasing + // yield cpu, test_task_00 is suspended, so test_count should no more increasing tos_task_delay(500); ASSERT_EQ(test_count_cache, test_count); @@ -170,7 +170,7 @@ TEST test_tos_task_suspend_resume(void) err = tos_task_resume(&test_task_00); ASSERT_EQ(err, K_ERR_NONE); - // yeild cpu + // yield cpu tos_task_delay(500); // test_task_00 obtain cpu, test_count get increased. @@ -232,7 +232,7 @@ TEST test_tos_task_yeild(void) test_count_cache = test_count; - /* we obtain cpu now, if we don't do yeild, test_task_00 will never get a + /* we obtain cpu now, if we don't do yield, test_task_00 will never get a chance to run, so test_count will never be changed. */ // in 2000 ticks, test_count will never be changed. @@ -241,7 +241,7 @@ TEST test_tos_task_yeild(void) } while (test_count == test_count_cache) { - /* we keep trying to yeild, test_task_00 will get a chance to increase test_count at last. + /* we keep trying to yield, test_task_00 will get a chance to increase test_count at last. */ tos_task_yield(); }