Update suit_task.c

test/suit_task.c:115:7: "yeild" is a misspelling of "yield"
test/suit_task.c:124:7: "yeild" is a misspelling of "yield"
test/suit_task.c:154:7: "yeild" is a misspelling of "yield"
test/suit_task.c:164:7: "yeild" is a misspelling of "yield"
test/suit_task.c:173:7: "yeild" is a misspelling of "yield"
test/suit_task.c:214:19: "yeild" is a misspelling of "yield"
test/suit_task.c:235:41: "yeild" is a misspelling of "yield"
test/suit_task.c:244:29: "yeild" is a misspelling of "yield"
test/suit_task.c:267:27: "yeild" is a misspelling of "yield"
This commit is contained in:
Keyi Xie
2020-09-12 16:09:31 +08:00
committed by GitHub
parent 796674bdf8
commit ef15deda27

View File

@@ -112,7 +112,7 @@ TEST test_tos_task_delay_abort(void)
ASSERT_EQ(test_count, 0); ASSERT_EQ(test_count, 0);
// yeild cpu to test_task_00 // yield cpu to test_task_00
err = tos_task_delay(100); err = tos_task_delay(100);
ASSERT_EQ(err, K_ERR_NONE); ASSERT_EQ(err, K_ERR_NONE);
@@ -121,7 +121,7 @@ TEST test_tos_task_delay_abort(void)
// abort test_task_00's huge delay // abort test_task_00's huge delay
err = tos_task_delay_abort(&test_task_00); err = tos_task_delay_abort(&test_task_00);
// yeild cpu to test_task_00 // yield cpu to test_task_00
tos_task_delay(100); tos_task_delay(100);
// test_count should be increased, and test_task_00 will be trapped into the huge delay again // 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); 0);
ASSERT_EQ(err, K_ERR_NONE); ASSERT_EQ(err, K_ERR_NONE);
// yeild cpu to test_task_00 // yield cpu to test_task_00
tos_task_delay(500); tos_task_delay(500);
// suspend test_task_00 // suspend test_task_00
@@ -161,7 +161,7 @@ TEST test_tos_task_suspend_resume(void)
// cache the current test_count // cache the current test_count
test_count_cache = 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); tos_task_delay(500);
ASSERT_EQ(test_count_cache, test_count); 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); err = tos_task_resume(&test_task_00);
ASSERT_EQ(err, K_ERR_NONE); ASSERT_EQ(err, K_ERR_NONE);
// yeild cpu // yield cpu
tos_task_delay(500); tos_task_delay(500);
// test_task_00 obtain cpu, test_count get increased. // test_task_00 obtain cpu, test_count get increased.
@@ -232,7 +232,7 @@ TEST test_tos_task_yeild(void)
test_count_cache = test_count; 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. chance to run, so test_count will never be changed.
*/ */
// in 2000 ticks, 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) { 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(); tos_task_yield();
} }