fix: kora工具检视问题修复
【背景】kora工具检视问题修复 【修改方案】 1,对部分代码问题进行整改 【影响】 对现有的产品编译不会有影响。 Signed-off-by: wangchen <wangchen64@huawei.com> Change-Id: Iafc58b7c71e5d139e11a0ae9d98ca5a57fc6549f
This commit is contained in:
@@ -149,6 +149,9 @@ static int TestSpawnAttr(short flag)
|
||||
ICUNIT_GOTO_EQUAL(status, 0, status, EXIT);
|
||||
|
||||
fd = open("/storage/testspawnattr.txt", O_RDWR | O_CREAT, 0644); // 0644, open config
|
||||
if (fd < 0) {
|
||||
goto EXIT;
|
||||
}
|
||||
ret = read(fd, temp, NUMMAX);
|
||||
ICUNIT_GOTO_EQUAL(ret, NUMMAX, ret, EXIT1);
|
||||
|
||||
|
||||
@@ -51,7 +51,6 @@ static int Testcase(void)
|
||||
CPU_SET(1, &cpuset); /* cpu1 unsupported operation */
|
||||
ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset);
|
||||
ICUNIT_GOTO_EQUAL(ret, -1, ret, ERROR_OUT);
|
||||
CPU_ZERO(&cpuset);
|
||||
|
||||
CPU_ZERO(&cpuset);
|
||||
CPU_SET(0, &cpuset); /* cpu0 */
|
||||
|
||||
Reference in New Issue
Block a user