!904 Fix : 内核告警清理

Merge pull request !904 from yinjiaming/fix
This commit is contained in:
openharmony_ci
2022-11-14 08:35:08 +00:00
committed by Gitee
3 changed files with 6 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ static void *TaskF01(void *parm)
return (void *)(LOS_NOK);
}
tmp = g_value + 1;
tmp = g_value + 1;
usleep(1000); // 1000, delay the increasement operation.
g_value = tmp;

View File

@@ -42,7 +42,7 @@ static UINT32 Testcase(VOID)
ret = pthread_attr_setdetachstate(NULL, PTHREAD_CREATE_DETACHED);
ICUNIT_GOTO_EQUAL(ret, EINVAL, ret, EXIT);
ret = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE - 2);
ret = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE - 2); // 2: used to create a invalid argument
ICUNIT_GOTO_EQUAL(ret, EINVAL, ret, EXIT);
ret = pthread_attr_setdetachstate(&attr, 3); // 3, test the param of function.