add testsuites/kernel to build
Change-Id: Ia14a3413b6c974771cef2e147083c7748abd1c59
This commit is contained in:
@@ -40,7 +40,7 @@ extern "C" {
|
||||
static void TaskF01(void)
|
||||
{
|
||||
while (1) {
|
||||
Wfi();
|
||||
WFI;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ extern "C" {
|
||||
static void TaskF01(void)
|
||||
{
|
||||
while (1) {
|
||||
Wfi();
|
||||
WFI;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ static void TaskF01(void)
|
||||
{
|
||||
LOS_AtomicInc(&g_testCount);
|
||||
while (1) {
|
||||
Wfi();
|
||||
WFI;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ static VOID TaskF01(VOID)
|
||||
|
||||
g_testCount++;
|
||||
|
||||
ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, 2); // 2, The timeout period for reading events.
|
||||
ret = LOS_EventRead(&g_event, 0x11, LOS_WAITMODE_AND, 200); // 200, The timeout period for reading events.
|
||||
ICUNIT_GOTO_EQUAL(ret, 0, ret, EXIT);
|
||||
ICUNIT_GOTO_EQUAL(g_event.uwEventID, 0, g_event.uwEventID, EXIT);
|
||||
|
||||
@@ -98,6 +98,7 @@ static UINT32 Testcase(VOID)
|
||||
|
||||
LOS_TaskUnlock();
|
||||
|
||||
LOS_TaskDelay(1);
|
||||
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // 2, Here, assert that g_testCount is equal to 2.
|
||||
|
||||
EXIT:
|
||||
|
||||
@@ -98,11 +98,6 @@ VOID ItSuiteLosSem(void)
|
||||
ItLosSem017();
|
||||
ItLosSem019();
|
||||
ItLosSem020();
|
||||
#if (LOSCFG_KERNEL_SMP != YES)
|
||||
ItLosSem018();
|
||||
ItLosSem021();
|
||||
ItLosSem025();
|
||||
#endif
|
||||
ItLosSem022();
|
||||
ItLosSem023();
|
||||
ItLosSem026();
|
||||
|
||||
Reference in New Issue
Block a user