style: Misspelling

Signed-off-by: lihongjin <lihongjin1@huawei.com>
Change-Id: I13163f2e4d1e4b6e6c6bedaf9d4e705544df926b
This commit is contained in:
lihongjin
2022-06-20 19:38:17 +08:00
parent 4acf1e9f8d
commit 1c0de289ec
37 changed files with 53 additions and 53 deletions

View File

@@ -51,7 +51,7 @@ static UINT32 Testcase(void)
g_testCount = 0;
TEST_TASK_PARAM_INIT(task1, "it_smp_task_035", (TSK_ENTRY_FUNC)TaskF02Preempt, TASK_PRIO_TEST_TASK - 1);
/* creat preempt task */
/* create preempt task */
task1.usCpuAffiMask = 0;
ret = LOS_TaskCreate(&g_testTaskID01, &task1);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);

View File

@@ -61,7 +61,7 @@ static UINT32 Testcase(void)
TEST_TASK_PARAM_INIT(task1, "it_smp_task_042", (TSK_ENTRY_FUNC)TaskF01, TASK_PRIO_TEST_TASK);
int i;
/* creat high prio task on every cores */
/* create high prio task on every cores */
for (i = 0; i < LOSCFG_KERNEL_CORE_NUM - 1; i++) {
/* take control of every cores */
task1.usCpuAffiMask = CPUID_TO_AFFI_MASK((ArchCurrCpuid() + i + 1) % (LOSCFG_KERNEL_CORE_NUM));

View File

@@ -59,7 +59,7 @@ static UINT32 Testcase(void)
TSK_INIT_PARAM_S task1 = { 0 };
g_testCount = 0;
// 5, lengh of the queue; 50, max queue msg size.
// 5, length of the queue; 50, max queue msg size.
ret = LOS_QueueCreate("queue", 5, &g_queue, 0, 50);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);

View File

@@ -58,7 +58,7 @@ static UINT32 Testcase(void)
TSK_INIT_PARAM_S task1 = { 0 };
g_testCount = 0;
// 5, lengh of the queue; 50, max queue msg size.
// 5, length of the queue; 50, max queue msg size.
ret = LOS_QueueCreate("queue", 5, &g_queue, 0, 50);
TEST_TASK_PARAM_INIT(task1, "it_smp_task_063", (TSK_ENTRY_FUNC)TaskF01, TASK_PRIO_TEST_TASK - 1);

View File

@@ -72,7 +72,7 @@ static UINT32 Testcase(void)
TSK_INIT_PARAM_S task1 = { 0 };
g_testCount = 0;
// 5, lengh of the queue; 50, max queue msg size.
// 5, length of the queue; 50, max queue msg size.
ret = LOS_QueueCreate("queue", 5, &g_queue, 0, 50);
TEST_TASK_PARAM_INIT(task1, "it_smp_task_068", (TSK_ENTRY_FUNC)TaskF01, TASK_PRIO_TEST_TASK - 1);

View File

@@ -71,7 +71,7 @@ static UINT32 Testcase(void)
UINT32 ret;
TSK_INIT_PARAM_S task1 = { 0 };
g_testCount = 0;
// 5, lengh of the queue; 50, max queue msg size.
// 5, length of the queue; 50, max queue msg size.
ret = LOS_QueueCreate("queue", 5, &g_queue, 0, 50);
TEST_TASK_PARAM_INIT(task1, "it_smp_task_065", (TSK_ENTRY_FUNC)TaskF01, TASK_PRIO_TEST_TASK - 1);

View File

@@ -57,7 +57,7 @@ static UINT32 Testcase(void)
int i;
for (i = 0; i < LOSCFG_KERNEL_CORE_NUM; i++) {
/* creat core_num same priority tasks */
/* create core_num same priority tasks */
task1.usCpuAffiMask = 0;
ret = LOS_TaskCreate(&testTaskIDSmp[i], &task1);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
@@ -72,7 +72,7 @@ static UINT32 Testcase(void)
timesliceCount2 = TestTickCountGet();
/* Check if task yield definitely successed */
/* Check if task yield definitely succeeded */
ICUNIT_GOTO_NOT_EQUAL(timesliceCount2, timesliceCount1, timesliceCount2 - timesliceCount1, EXIT);
for (i = 0; i < LOSCFG_KERNEL_CORE_NUM; i++) {

View File

@@ -115,7 +115,7 @@ VOID ItSuiteLosSem(void)
ItLosSem037();
ItLosSem038();
#ifndef LOSCFG_KERNEL_SMP_TASK_SYNC
// LOSCFG_KERNEL_SMP_TASK_SYNC is opened ,create task success is depend on created semaphore successed;
// LOSCFG_KERNEL_SMP_TASK_SYNC is opened ,create task success is depend on created semaphore succeeded;
ItLosSem039();
ItLosSem040();
ItLosSem041();

View File

@@ -39,7 +39,7 @@ extern "C" {
/* pthread_mutex_init 4-1.c
* Test that pthread_mutex_init()
* Upon succesful completion, it shall return a 0
* Upon successful completion, it shall return a 0
*
*/
static UINT32 Testcase(VOID)

View File

@@ -39,7 +39,7 @@ extern "C" {
/* pthread_mutex_destroy 3-1.c
* Test that pthread_mutex_destroy()
* Upon succesful completion, it shall return a 0
* Upon successful completion, it shall return a 0
*
*/
static UINT32 Testcase(VOID)

View File

@@ -43,7 +43,7 @@ extern "C" {
* source tree.
* Test that pthread_mutex_lock()
* Upon succesful completion, it shall return a 0
* Upon successful completion, it shall return a 0
*
*/
static UINT32 Testcase(VOID)

View File

@@ -42,7 +42,7 @@ extern "C" {
* shall release the mutex object 'mutex'.
* Steps:
* -- Initilize a mutex object
* -- initialize a mutex object
* -- Get the mutex using pthread_mutex_lock()
* -- Release the mutex using pthread_mutex_unlock()
* -- Try to get the mutex using pthread_mutex_trylock()

View File

@@ -39,7 +39,7 @@ extern "C" {
/* pthread_mutex_unlock 3-1.c
* Test that pthread_mutex_unlock()
* Upon succesful completion, it shall return zero
* Upon successful completion, it shall return zero
*
*/
static UINT32 Testcase(VOID)

View File

@@ -38,7 +38,7 @@ extern "C" {
/* pthread_mutex_trylock 3-1.c
* Test that pthread_mutex_trylock()
* Upon succesful completion, it shall return a 0
* Upon successful completion, it shall return a 0
*
*/
static UINT32 Testcase(VOID)

View File

@@ -43,7 +43,7 @@ extern "C" {
* -[EBUSY] The mutex could not be acquired because it was already locked.
* Steps:
* -- Initilize a mutex object
* -- initialize a mutex object
* -- Lock the mutex using pthread_mutex_lock()
* -- Try to lock the mutex using pthread_mutex_trylock() and expect EBUSY
*