fix: 修复进程用例导致门禁概率失败

Close #I4FO0N
Signed-off-by: zhushengle <zhushengle@huawei.com>
Change-Id: I9dc9819f2ebceaceea337651cc747d737e437661
This commit is contained in:
zhushengle 2021-10-27 17:35:39 +08:00
parent 24ba16a01e
commit 1ed28b4c80
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);