!782 feat: 调度tick响应时间计算优化

Merge pull request !782 from zhushengle/calc_sched
This commit is contained in:
openharmony_ci
2022-01-19 09:20:34 +00:00
committed by Gitee
9 changed files with 108 additions and 150 deletions

View File

@@ -67,7 +67,7 @@ static int Testcase(VOID)
ICUNIT_ASSERT_EQUAL(err, EINVAL, err);
param.sched_priority = 15; // 15, set pthread priority.
ret = sched_setparam(20, &param); // 20, set the param.
ret = sched_setparam(60, &param); // 60, set the param.
err = errno;
ICUNIT_ASSERT_EQUAL(ret, -1, ret);
ICUNIT_ASSERT_EQUAL(err, ESRCH, err);