fix: 内源检视测试用例问题修复

Signed-off-by: zhushengle <zhushengle@huawei.com>
Change-Id: I605bf04f3afe92d621aea6410bbdc3bea44c601b
This commit is contained in:
zhushengle
2022-03-21 10:35:16 +08:00
parent cdcf600571
commit a6ac7597f8
501 changed files with 2473 additions and 3796 deletions

View File

@@ -82,7 +82,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, 1, g_testCount, EXIT);
EXIT:

View File

@@ -109,7 +109,7 @@ static UINT32 Testcase(void)
LOS_TaskDelay(1);
PRINTK("sent %u time\n", g_ipiTriggerTimes);
for (i = 0; i < LOSCFG_KERNEL_CORE_NUM; i++) {
PRINTK(" cpu%d recieved %u times\n", i, g_ipiRecieveTimes[i]);
PRINTK(" cpu%d received %u times\n", i, g_ipiRecieveTimes[i]);
}
ICUNIT_GOTO_EQUAL(g_testCount, LOSCFG_KERNEL_CORE_NUM * (j + 1), g_testCount, EXIT);

View File

@@ -66,8 +66,8 @@ static UINT32 Testcase(VOID)
ret = LOS_TaskDelay(12); // 12, set delay time
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
if (g_testCount < 10) { // 10, if g_testCount < 10 set a erro code, then exit
ICUNIT_GOTO_EQUAL(g_testCount, 10, g_testCount, EXIT); // 10, if g_testCount < 10 set a erro code, then exit
if (g_testCount < 10) { // 10, if g_testCount < 10 set an erro code, then exit
ICUNIT_GOTO_EQUAL(g_testCount, 10, g_testCount, EXIT); // 10, if g_testCount < 10 set an erro code, then exit
}
EXIT:

View File

@@ -63,7 +63,7 @@ static UINT32 Testcase(VOID)
ret = LOS_SwtmrTimeGet(swTmrID, &tick);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
if (tick > 4) { // 4, if tick > 4, set a erro code, then exit
if (tick > 4) { // 4, if tick > 4, set an erro code, then exit
ICUNIT_GOTO_EQUAL(1, 0, tick, EXIT);
}

View File

@@ -62,7 +62,7 @@ static UINT32 Testcase(void)
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
/* Wait TaskF01 to start */
TestAssertBusyTaskDelay(100, 1); // 100, Set the timeout of runtime; 1, test runing count
TestAssertBusyTaskDelay(100, 1); // 100, Set the timeout of runtime; 1, test running count
TestBusyTaskDelay(2); // 2, set delay time
ret = OS_TCB_FROM_TID(testid)->taskStatus;

View File

@@ -74,7 +74,7 @@ static UINT32 Testcase(void)
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
/* Wait TaskF1 to start */
TestAssertBusyTaskDelay(100, 1); // 100, Set the timeout of runtime; 1, test runing count
TestAssertBusyTaskDelay(100, 1); // 100, Set the timeout of runtime; 1, test running count
ICUNIT_ASSERT_EQUAL(g_testCount, 1, g_testCount);
/* lower down the priority of TaskF01 to trigger preeption */

View File

@@ -63,7 +63,7 @@ static UINT32 Testcase(void)
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
}
/* wait for task to yeild */
/* wait for task to yield */
TestBusyTaskDelay(LOSCFG_BASE_CORE_TIMESLICE_TIMEOUT * 2); // 2, used to calculate delay time
ICUNIT_GOTO_EQUAL(g_testCount, LOSCFG_KERNEL_CORE_NUM, g_testCount, EXIT);

View File

@@ -66,7 +66,7 @@ static UINT32 Testcase(void)
ret = LOS_TaskCreate(&g_testTaskID01, &task1);
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
TestBusyTaskDelay(2); // 2, set delay time
@@ -91,7 +91,7 @@ static UINT32 Testcase(void)
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
TestBusyTaskDelay(2); // 2, set delay time

View File

@@ -70,7 +70,7 @@ static UINT32 Testcase(void)
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
/* Wait TaskF01 to start */
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, assert that g_testCount is equal to this.

View File

@@ -84,7 +84,7 @@ static UINT32 Testcase(void)
ret = LOS_TaskCreate(&g_testTaskID01, &task1);
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
TestBusyTaskDelay(2); // 2, set delay time

View File

@@ -89,7 +89,7 @@ static UINT32 Testcase(void)
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
/* Wait TaskF01 to start */
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
TestBusyTaskDelay(2); // 2, set delay time

View File

@@ -82,7 +82,7 @@ static UINT32 Testcase(void)
ret = LOS_TaskCreate(&g_testTaskID01, &task1);
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
TestBusyTaskDelay(2); // 2, set delay time

View File

@@ -66,7 +66,7 @@ static UINT32 Testcase(void)
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
/* wait for other core's task being schduled */
TestAssertBusyTaskDelay(100, 1); // 100, Set the timeout of runtime; 1, test runing count
TestAssertBusyTaskDelay(100, 1); // 100, Set the timeout of runtime; 1, test running count
TestBusyTaskDelay(2); // 2, set delay time
ret = OS_TCB_FROM_TID(g_testTaskID01)->taskStatus;

View File

@@ -83,7 +83,7 @@ static UINT32 Testcase(void)
ret = LOS_TaskCreate(&g_testTaskID01, &task1);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 1); // 100, Set the timeout of runtime; 1, test runing count
TestAssertBusyTaskDelay(100, 1); // 100, Set the timeout of runtime; 1, test running count
TestBusyTaskDelay(2); // 2, set delay time

View File

@@ -73,7 +73,7 @@ static UINT32 Testcase(void)
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
/* wait for other core's task being scheduled */
TestAssertBusyTaskDelay(100, 1); // 100, Set the timeout of runtime; 1, test runing count
TestAssertBusyTaskDelay(100, 1); // 100, Set the timeout of runtime; 1, test running count
TestBusyTaskDelay(2); // 2, set delay time
@@ -98,7 +98,7 @@ static UINT32 Testcase(void)
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
/* wait for other core's task executed */
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
TestBusyTaskDelay(4); // 4, set delay time

View File

@@ -81,7 +81,7 @@ static UINT32 Testcase(void)
ret = LOS_TaskCreate(&g_testTaskID02, &task1);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 1); // 100, Set the timeout of runtime; 1, test runing count
TestAssertBusyTaskDelay(100, 1); // 100, Set the timeout of runtime; 1, test running count
TestBusyTaskDelay(2); // 2, set delay time

View File

@@ -67,7 +67,7 @@ static UINT32 Testcase(void)
ret = LOS_TaskCreate(&g_testTaskID01, &task1);
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
TestBusyTaskDelay(2); // 2, set delay time
@@ -89,7 +89,7 @@ static UINT32 Testcase(void)
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
TestBusyTaskDelay(2); // 2, set delay time

View File

@@ -89,7 +89,7 @@ static UINT32 Testcase(void)
ret = LOS_TaskCreate(&g_testTaskID01, &task1);
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
TestBusyTaskDelay(2); // 2, set delay time
@@ -116,7 +116,7 @@ static UINT32 Testcase(void)
ret = LOS_SemPost(g_semID);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 5); // 100, Set the timeout of runtime; 5, test runing count
TestAssertBusyTaskDelay(100, 5); // 100, Set the timeout of runtime; 5, test running count
ICUNIT_ASSERT_EQUAL(g_testCount, 5, g_testCount); // 5, assert that g_testCount is equal to this.

View File

@@ -78,7 +78,7 @@ static UINT32 Testcase(void)
ret = LOS_TaskCreate(&g_testTaskID01, &task1);
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
TestBusyTaskDelay(2); // 2, set delay time
ICUNIT_ASSERT_EQUAL(g_testCount, 2, g_testCount); // 2, assert that g_testCount is equal to this.

View File

@@ -81,7 +81,7 @@ static UINT32 Testcase(void)
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
/* Wait other core's TaskF01 to resume */
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
TestBusyTaskDelay(2); // 2, set delay time

View File

@@ -84,7 +84,7 @@ static UINT32 Testcase(void)
ret = LOS_TaskCreate(&g_testTaskID02, &task1);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 1); // 100, Set the timeout of runtime; 1, test runing count
TestAssertBusyTaskDelay(100, 1); // 100, Set the timeout of runtime; 1, test running count
TestBusyTaskDelay(2); // 2, set delay time
@@ -111,7 +111,7 @@ static UINT32 Testcase(void)
/* unlock other core's tasklock */
g_flag = 1;
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
TestBusyTaskDelay(2); // 2, set delay time

View File

@@ -84,7 +84,7 @@ static UINT32 Testcase(void)
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
/* wait for other core's task to suspend */
TestAssertBusyTaskDelay(100, 1); // 100, Set the timeout of runtime; 1, test runing count
TestAssertBusyTaskDelay(100, 1); // 100, Set the timeout of runtime; 1, test running count
TestBusyTaskDelay(2); // 2, set delay time
@@ -99,7 +99,7 @@ static UINT32 Testcase(void)
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
/* wait for other core's task being running */
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
TestBusyTaskDelay(10); // 10, set delay time
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, assert that g_testCount is equal to this.

View File

@@ -68,7 +68,7 @@ static UINT32 Testcase(void)
ret = LOS_TaskCreate(&g_testTaskID01, &task1);
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
// 2, set delay time.
TestBusyTaskDelay(2);

View File

@@ -93,7 +93,7 @@ static UINT32 Testcase(void)
ret = LOS_TaskYield();
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
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, assert that g_testCount is equal to this.

View File

@@ -75,7 +75,7 @@ static UINT32 Testcase(void)
ret = OS_TCB_FROM_TID(g_testTaskID02)->taskStatus;
ICUNIT_ASSERT_NOT_EQUAL((ret & OS_TASK_STATUS_READY), 0, ret);
TestAssertBusyTaskDelay(100, 1); // 100, Set the timeout of runtime; 1, test runing count
TestAssertBusyTaskDelay(100, 1); // 100, Set the timeout of runtime; 1, test running count
ICUNIT_ASSERT_NOT_EQUAL(g_testCount, 0, g_testCount);

View File

@@ -84,7 +84,7 @@ static UINT32 Testcase(void)
LOS_TaskUnlock();
/* wait for TaskF01 is finished */
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_ASSERT_EQUAL(g_testCount, 1, g_testCount);

View File

@@ -74,7 +74,7 @@ static UINT32 Testcase(void)
ret = LOS_TaskCreate(&g_testTaskID01, &task1);
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
TestBusyTaskDelay(5); // 5, set delay time
@@ -95,7 +95,7 @@ static UINT32 Testcase(void)
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_ASSERT_EQUAL(g_testCount, 3, g_testCount); // 3, assert that g_testCount is equal to this.

View File

@@ -71,7 +71,7 @@ static UINT32 Testcase(void)
ret = LOS_TaskCreate(&g_testTaskID01, &task1);
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
TestBusyTaskDelay(2); // 2, set delay time
@@ -93,7 +93,7 @@ static UINT32 Testcase(void)
ret = LOS_TaskResume(g_testTaskID01);
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_ASSERT_EQUAL(g_testCount, 3, g_testCount); // 3, assert that g_testCount is equal to this.

View File

@@ -84,7 +84,7 @@ static UINT32 Testcase(void)
ret = LOS_TaskCreate(&g_testTaskID02, &task1);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 1); // 100, Set the timeout of runtime; 1, test runing count
TestAssertBusyTaskDelay(100, 1); // 100, Set the timeout of runtime; 1, test running count
LOS_AtomicInc(&g_testCount);

View File

@@ -94,7 +94,7 @@ static UINT32 Testcase(void)
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
/* wait for task02 start */
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
for (j = 0; j < TRandom() % 200; j++) { // 200, Number of cycles.
}

View File

@@ -69,7 +69,7 @@ static UINT32 Testcase(void)
ret = LOS_TaskCreate(&g_testTaskID02, &task1);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
TestAssertBusyTaskDelay(100, 1); // 100, Set the timeout of runtime; 1, test runing count
TestAssertBusyTaskDelay(100, 1); // 100, Set the timeout of runtime; 1, test running count
ICUNIT_ASSERT_EQUAL(g_testCount, 1, g_testCount);

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)
tickNum = (osEndTime - osStartTime) * LOSCFG_BASE_CORE_TICK_PER_SECOND / OS_SYS_CLOCK;
if (tickNum < (10 - 2) && tickNum > (10 + 2)) { // when tick num in 10 - 2 or 10 + 2 interval
if (tickNum < (10 - 2) || tickNum > (10 + 2)) { // when tick num in 10 - 2 or 10 + 2 interval
ICUNIT_ASSERT_EQUAL(tickNum, 0, tickNum);
}
ret = LOS_EventClear(&g_event, 0);

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");