fix:修复函数返回错误等问题

Signed-off-by: zhangdengyu <zhangdengyu2@huawei.com>
This commit is contained in:
zhangdengyu
2022-09-24 17:04:38 +08:00
parent 453c376198
commit dd8d48a2bf
34 changed files with 83 additions and 79 deletions

View File

@@ -39,8 +39,10 @@ extern "C" {
static UINT32 TaskF02(VOID)
{
UINT32 ret, cpupUse;
UINT32 ret = OS_ERROR;
UINT32 cpupUse;
g_cpupTestCount++;
// 2, Here, assert that g_cpupTestCount is equal to the expected value.
ICUNIT_GOTO_EQUAL(g_cpupTestCount, 2, g_cpupTestCount, EXIT);
cpupUse = LOS_HistoryProcessCpuUsage(g_testTaskID01, CPUP_ALL_TIME);

View File

@@ -39,9 +39,10 @@ extern "C" {
static UINT32 TaskF01(VOID)
{
UINT32 ret;
UINT32 ret = OS_ERROR;
UINT32 cpupUse;
g_cpupTestCount++;
ICUNIT_GOTO_EQUAL(g_cpupTestCount, 1, g_cpupTestCount, EXIT);
cpupUse = LOS_HistoryProcessCpuUsage(LOS_GetCurrProcessID(), CPU_USE_MODE0);