!682 fix: 修复进程process_test_045.cpp用例导致门禁概率失败
Merge pull request !682 from zhushengle/test
This commit is contained in:
commit
308750199f
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue