kernel测试套适配xtensa及csky架构

Signed-off-by: gsshch <17326005269@163.com>
This commit is contained in:
LiteOS2021
2022-01-11 14:54:32 +08:00
committed by gsshch
parent 47c6ef37d7
commit dcda9dcfa3
42 changed files with 125 additions and 69 deletions

View File

@@ -106,6 +106,7 @@ static_library("test_swtmr") {
"It_los_swtmr_076.c",
"It_los_swtmr_077.c",
"It_los_swtmr_078.c",
"It_los_swtmr_079.c",
"It_los_swtmr_Align_001.c",
"It_los_swtmr_Align_002.c",
"It_los_swtmr_Align_003.c",

View File

@@ -33,7 +33,7 @@
#include "It_los_swtmr.h"
#ifdef __RISC_V__
#if defined(__RISC_V__) || defined(__XTENSA_LX6__) || defined(__CSKY_V2__)
#define HWI_NUM_INT31 HWI_NUM_TEST
#define HWI_NUM_INT14 HWI_NUM_TEST
#endif

View File

@@ -33,7 +33,7 @@
#include "It_los_swtmr.h"
#ifdef __RISC_V__
#if defined(__RISC_V__) || defined(__XTENSA_LX6__) || defined(__CSKY_V2__)
#define HWI_NUM_INT31 HWI_NUM_TEST
#define HWI_NUM_INT14 HWI_NUM_TEST
#endif

View File

@@ -33,7 +33,7 @@
#include "It_los_swtmr.h"
#ifdef __RISC_V__
#if defined(__RISC_V__) || defined(__XTENSA_LX6__) || defined(__CSKY_V2__)
#define HWI_NUM_INT11 HWI_NUM_TEST
#endif

View File

@@ -33,7 +33,7 @@
#include "It_los_swtmr.h"
#ifdef __RISC_V__
#if defined(__RISC_V__) || defined(__XTENSA_LX6__) || defined(__CSKY_V2__)
#define HWI_NUM_INT12 HWI_NUM_TEST
#endif

View File

@@ -79,8 +79,8 @@ static UINT32 Testcase(VOID)
ret = LOS_SwtmrTimeGet(g_swtmrId1, &tick);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
// 2, assert that uwTick is equal to this.
ICUNIT_GOTO_EQUAL(tick, 2, tick, EXIT);
// 1, assert that uwTick is equal to this.
ICUNIT_GOTO_EQUAL(tick, 1, tick, EXIT);
// 2, Here, assert that g_testCount is equal to this .
ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT);

View File

@@ -68,7 +68,7 @@ static UINT32 Testcase(VOID)
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);
id2 = swtmrId1;
ICUNIT_GOTO_EQUAL(id1, id2, id2, EXIT);
ICUNIT_GOTO_NOT_EQUAL(id1, id2, id2, EXIT);
ret = LOS_SwtmrDelete(id2);
ICUNIT_ASSERT_EQUAL(ret, LOS_OK, ret);