fix:内源代码检视拼写错误修改

【背景】3.1代码review问题修改

    【修改方案】
     根据检视意见对拼写错误进行修改

     Signed-off-by: xuiny <xuxinyu6@huawei.com>

Change-Id: I9fb982a8ba2052fa4d56e91eec33c96ab4035a90
This commit is contained in:
x_xiny
2022-03-14 15:53:52 +08:00
parent 87a7df48b8
commit 0f75bf01a6
223 changed files with 318 additions and 318 deletions

View File

@@ -77,7 +77,7 @@ static UINT32 Testcase(VOID)
g_testCount++;
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test runing count
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 3, g_testCount, EXIT); // 3, Here, assert that g_testCount is equal to 3.
EXIT:
LOS_TaskDelete(g_testTaskID01);

View File

@@ -86,7 +86,7 @@ static UINT32 Testcase(VOID)
LOS_EventWrite(&g_event, 0x1111);
ICUNIT_GOTO_EQUAL(g_testCount, 1, g_testCount, EXIT);
TestAssertBusyTaskDelay(100, 4); // 100, Set the timeout of runtime; 4, test runing count
TestAssertBusyTaskDelay(100, 4); // 100, Set the timeout of runtime; 4, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 4, g_testCount, EXIT1); // 4, Here, assert that g_testCount is equal to 4.
EXIT1:

View File

@@ -69,7 +69,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID01, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.
EXIT:

View File

@@ -71,7 +71,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger(HWI_NUM_TEST);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
EXIT:
LOS_HwiDelete(HWI_NUM_TEST, NULL);

View File

@@ -72,7 +72,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger(HWI_NUM_TEST);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.

View File

@@ -89,7 +89,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID02, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test runing count
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 3, g_testCount, EXIT); // 3, Here, assert that g_testCount is equal to 3.
ret = LOS_EventDestroy(&g_event);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);

View File

@@ -91,7 +91,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID02, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.
EXIT:

View File

@@ -99,7 +99,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger(HWI_NUM_TEST);
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test runing count
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 3, g_testCount, EXIT); // 3, Here, assert that g_testCount is equal to 3.

View File

@@ -72,7 +72,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID01, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.
EXIT:

View File

@@ -74,7 +74,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID01, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.
ret = LOS_EventDestroy(&g_event);

View File

@@ -86,7 +86,7 @@ static UINT32 Testcase(VOID)
ICUNIT_GOTO_EQUAL(g_testCount, 1, g_testCount, EXIT);
TestHwiTrigger(HWI_NUM_TEST);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.
ret = LOS_EventDestroy(&g_event);

View File

@@ -89,7 +89,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID02, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.
EXIT:

View File

@@ -89,7 +89,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID02, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.
EXIT:

View File

@@ -93,7 +93,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger(HWI_NUM_TEST);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.
EXIT:

View File

@@ -45,7 +45,7 @@ static VOID TaskF01(VOID)
LOS_AtomicInc(&g_testCount);
ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, LOS_WAIT_FOREVER);
/*
* write event ---> read event ---> destory event [pass]
* write event ---> read event ---> destroy event [pass]
* write event ---> destroy event ---> read event [fail]
*/
LOS_AtomicInc(&g_testCount);

View File

@@ -111,7 +111,7 @@ static UINT32 Testcase(void)
} else if ((g_ret1 == 0x00) && (g_ret2 == LOS_OK) && (g_ret3 == LOS_OK)) {
/*
* (g_ret1 == 0) && (g_ret2 == 0) && (uwRet3 == 0)
* try read -->write event ---resume read---> destory event ---> read event [fail]
* try read -->write event ---resume read---> destroy event ---> read event [fail]
*/
} else {
ICUNIT_GOTO_EQUAL(1, 0, g_ret1, EXIT);

View File

@@ -100,13 +100,13 @@ static UINT32 Testcase(VOID)
ret = LOS_EventWrite(&g_event, 0x11); // try to wake task f01
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
// 100, Set the timeout of runtime; 2, test runing count
// 100, Set the timeout of runtime; 2, test running count
TestAssertBusyTaskDelay(100, 2); // cause tasklock on other cpu ,so task f01 wake failed
LOS_AtomicInc(&g_testCount);
g_runFlag = 0; // unlock the other cpu
// 100, Set the timeout of runtime; 4, test runing count
// 100, Set the timeout of runtime; 4, test running count
TestAssertBusyTaskDelay(100, 4); // not schedule in current cpu cause tasklock
EXIT:

View File

@@ -103,7 +103,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID01, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
LOS_TaskDelay(2); // test task's prio be seted 22
LOS_TaskDelay(2); // test task's prio be set 22
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT);
LOS_TaskLock();

View File

@@ -70,7 +70,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID01, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count.
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count.
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.
EXIT:

View File

@@ -72,7 +72,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger(HWI_NUM_TEST);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count.
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count.
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.

View File

@@ -87,7 +87,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID02, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count.
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count.
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.
EXIT:

View File

@@ -88,7 +88,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID02, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count.
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count.
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.
EXIT:

View File

@@ -73,7 +73,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger(HWI_NUM_TEST);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count.
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count.
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.
ret = LOS_QueueDelete(g_testQueueID01);

View File

@@ -94,7 +94,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger(HWI_NUM_TEST);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count.
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count.
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT);
EXIT:

View File

@@ -88,7 +88,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID02, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test runing count.
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test running count.
ICUNIT_GOTO_EQUAL(g_testCount, 3, g_testCount, EXIT); // 3, Here, assert that g_testCount is equal to 3.
ret = LOS_QueueDelete(g_testQueueID01);

View File

@@ -90,7 +90,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger(HWI_NUM_TEST);
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test runing count.
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test running count.
ICUNIT_GOTO_EQUAL(g_testCount, 3, g_testCount, EXIT); // 3, Here, assert that g_testCount is equal to 3.
ret = LOS_QueueDelete(g_testQueueID01);

View File

@@ -95,7 +95,7 @@ static UINT32 Testcase(VOID)
ret = LOS_QueueWrite(g_testQueueID01, &g_buff1, 8, LOS_WAIT_FOREVER); // 8, Write the setting size of queue buffer.;
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test runing count.
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test running count.
ICUNIT_GOTO_EQUAL(g_testCount, 3, g_testCount, EXIT); // 3, Here, assert that g_testCount is equal to 3.
EXIT:

View File

@@ -96,7 +96,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID02, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test runing count.
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test running count.
ICUNIT_GOTO_EQUAL(g_testCount, 3, g_testCount, EXIT); // 3, Here, assert that g_testCount is equal to 3.
EXIT:

View File

@@ -99,7 +99,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger(HWI_NUM_TEST);
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test runing count.
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test running count.
ICUNIT_GOTO_EQUAL(g_testCount, 3, g_testCount, EXIT); // 3, Here, assert that g_testCount is equal to 3.

View File

@@ -73,7 +73,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID01, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count.
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count.
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.
EXIT:

View File

@@ -75,7 +75,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID01, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count.
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count.
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.
ret = LOS_QueueDelete(g_testQueueID01);

View File

@@ -90,7 +90,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger(HWI_NUM_TEST);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count.
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count.
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.
ret = LOS_QueueDelete(g_testQueueID01);

View File

@@ -92,7 +92,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID02, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count.
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count.
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.
EXIT:

View File

@@ -88,7 +88,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID02, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count.
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count.
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.
EXIT:

View File

@@ -94,7 +94,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger(HWI_NUM_TEST);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count.
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count.
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.
EXIT:
LOS_TaskDelete(g_testTaskID01);

View File

@@ -106,7 +106,7 @@ static UINT32 Testcase(VOID)
ret = LOS_QueueWrite(g_testQueueID01, &g_buff1, 8, LOS_WAIT_FOREVER); // 8, Write the setting size of queue buffer.
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test runing count.
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test running count.
ICUNIT_GOTO_EQUAL(g_testCount, 3, g_testCount, EXIT1); // 3, Here, assert that g_testCount is equal to 3.
ret = LOS_QueueWrite(g_testQueueID01, &g_buff1, 8, LOS_WAIT_FOREVER); // 8, Write the setting size of queue buffer.

View File

@@ -103,7 +103,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID01, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count.
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count.
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.
/* wait for task01 to pend sem */
@@ -129,7 +129,7 @@ static UINT32 Testcase(VOID)
g_runFlag = 0; // unlock the other cpu
PRINT_DEBUG("finally\n");
TestAssertBusyTaskDelay(100, 4); // 100, Set the timeout of runtime; 4, test runing count.
TestAssertBusyTaskDelay(100, 4); // 100, Set the timeout of runtime; 4, test running count.
ICUNIT_GOTO_EQUAL(g_testCount, 4, g_testCount, EXIT); // 4, Here, assert that g_testCount is equal to 4.
EXIT:

View File

@@ -89,7 +89,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID02, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count.
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count.
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.
/* wait for task01 to pend sem */
@@ -104,7 +104,7 @@ static UINT32 Testcase(VOID)
ret = LOS_QueueWrite(g_testQueueID01, &g_buff1, 8, LOS_WAIT_FOREVER); // 8, Write the setting size of queue buffer.
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test runing count.
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test running count.
ICUNIT_GOTO_EQUAL(g_testCount, 3, g_testCount, EXIT); // 3, Here, assert that g_testCount is equal to 3.
EXIT:

View File

@@ -69,7 +69,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID01, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to
EXIT:

View File

@@ -71,7 +71,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger(HWI_NUM_TEST);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to
EXIT:

View File

@@ -85,7 +85,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID02, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to
TestBusyTaskDelay(1);

View File

@@ -92,7 +92,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID02, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to
/* wait for task1 to pend sem */

View File

@@ -73,7 +73,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger(HWI_NUM_TEST);
TestAssertBusyTaskDelay(200, 2); // 200, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(200, 2); // 200, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert the result
ret = LOS_SemDelete(g_semID);

View File

@@ -95,7 +95,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger(HWI_NUM_TEST);
TestAssertBusyTaskDelay(200, 2); // 200, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(200, 2); // 200, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to
EXIT:

View File

@@ -88,7 +88,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID02, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test runing count
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 3, g_testCount, EXIT); // 3, Here, assert that g_testCount is equal to
ret = LOS_SemDelete(g_semID);

View File

@@ -89,7 +89,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger(HWI_NUM_TEST);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to
ret = LOS_SemDelete(g_semID);

View File

@@ -94,7 +94,7 @@ static UINT32 Testcase(VOID)
ret = LOS_SemPost(g_semID);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to
EXIT:

View File

@@ -90,7 +90,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID02, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to
EXIT:

View File

@@ -98,7 +98,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger(HWI_NUM_TEST);
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test runing count
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 3, g_testCount, EXIT); // 3, Here, assert that g_testCount is equal to
EXIT:

View File

@@ -73,7 +73,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID01, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to
EXIT:

View File

@@ -73,7 +73,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID01, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to
ret = LOS_SemDelete(g_semID);

View File

@@ -90,7 +90,7 @@ static UINT32 testcase(VOID)
TestHwiTrigger(HWI_NUM_TEST);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to
ret = LOS_SemDelete(g_semID);

View File

@@ -90,7 +90,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID02, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to
EXIT:

View File

@@ -85,7 +85,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID02, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to
EXIT:

View File

@@ -96,7 +96,7 @@ static UINT32 testcase(VOID)
TestHwiTrigger(HWI_NUM_TEST);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to
EXIT:

View File

@@ -96,13 +96,13 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID02, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to
ret = LOS_SemPost(g_semID);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test runing count
TestAssertBusyTaskDelay(100, 3); // 100, Set the timeout of runtime; 3, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 3, g_testCount, EXIT); // 3, Here, assert that g_testCount is equal to
if ((g_ret1 + g_ret2 == 0xff) && (TestAbs(g_ret1, g_ret2) == 0xff))
ICUNIT_GOTO_EQUAL(1, 1, g_ret1, EXIT);

View File

@@ -114,7 +114,7 @@ static UINT32 Testcase(VOID)
ret = LOS_SemPost(g_semID); // sem post in task
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 4); // 100, Set the timeout of runtime; 4, test runing count
TestAssertBusyTaskDelay(100, 4); // 100, Set the timeout of runtime; 4, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 4, g_testCount, EXIT); // 4, Here, assert that g_testCount is equal to
ret = LOS_SemDelete(g_semID);

View File

@@ -87,7 +87,7 @@ static UINT32 Testcase(VOID)
ret = LOS_SemDelete(g_semID);
g_ret1 = ret;
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to
if (((g_ret1 == LOS_OK) && (g_ret2 != LOS_OK)) || ((g_ret2 == LOS_OK) && (g_ret1 != LOS_OK)))

View File

@@ -101,7 +101,7 @@ static UINT32 Testcase(VOID)
ret = LOS_SemPost(g_semID); // post sem in other cpu
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
TestAssertBusyTaskDelay(100, 4); // 100, Set the timeout of runtime; 4, test runing count
TestAssertBusyTaskDelay(100, 4); // 100, Set the timeout of runtime; 4, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 4, g_testCount, EXIT); // 4, Here, assert that g_testCount is equal to
if ((g_ret != LOS_OK) && (g_ret != LOS_ERRNO_SEM_PENDED)) {

View File

@@ -83,7 +83,7 @@ static UINT32 Testcase(VOID)
ret = LOS_SemPost(g_semID); // post sem before 10 ticks timeout
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, LOSCFG_KERNEL_CORE_NUM * 3); // 100, Set the timeout of runtime; LOSCFG_KERNEL_CORE_NUM * 3, test runing count
TestAssertBusyTaskDelay(100, LOSCFG_KERNEL_CORE_NUM * 3); // 100, Set the timeout of runtime; LOSCFG_KERNEL_CORE_NUM * 3, test running count
ICUNIT_GOTO_EQUAL(g_testCount, LOSCFG_KERNEL_CORE_NUM * 3, g_testCount, EXIT); // 3, Here, assert that g_testCount is equal to
EXIT:

View File

@@ -103,7 +103,7 @@ static UINT32 Testcase(VOID)
ret = LOS_SemPost(g_semID);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(200, 3); // 200, Set the timeout of runtime; 3, test runing count
TestAssertBusyTaskDelay(200, 3); // 200, Set the timeout of runtime; 3, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 3, g_testCount, EXIT1); // 3, Here, assert that g_testCount is equal to
ret = LOS_SemPost(g_semID);

View File

@@ -101,7 +101,7 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskCreate(&g_testTaskID01, &testTask);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay(100, 2); // 100, Set the timeout of runtime; 2, test running count
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to
PRINT_DEBUG("sem post\n");