!682 fix: 修复进程process_test_045.cpp用例导致门禁概率失败

Merge pull request !682 from zhushengle/test
This commit is contained in:
openharmony_ci 2021-10-28 08:18:42 +00:00 committed by Gitee
commit 308750199f
1 changed files with 2 additions and 2 deletions

View File

@ -59,11 +59,11 @@ static UINT32 Testcase(VOID)
ICUNIT_ASSERT_EQUAL(ret, -1, ret);
ICUNIT_ASSERT_EQUAL(errno, EPERM, errno);
ret = sched_setaffinity(60, sizeof(cpu_set_t), &cpuset); // 60, pid num
ret = sched_setaffinity(128, sizeof(cpu_set_t), &cpuset); // 128, pid num
ICUNIT_ASSERT_EQUAL(ret, -1, ret);
ICUNIT_ASSERT_EQUAL(errno, ESRCH, errno);
ret = sched_getaffinity(60, sizeof(cpu_set_t), &cpuset); // 60, pid num
ret = sched_getaffinity(128, sizeof(cpu_set_t), &cpuset); // 128, pid num
ICUNIT_ASSERT_EQUAL(ret, -1, ret);
ICUNIT_ASSERT_EQUAL(errno, ESRCH, errno);