代码拉取完成,页面将自动刷新
【标题描述】能够简要描述问题:说明什么场景下,做了什么操作,出现什么问题(尽量使用正向表达方式)
【环境信息】
stm32f407
【问题复现步骤】
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* Test that sched_get_priority_min() returns the minimum value on
* success for SCHED_RR policy.
*/
#include <stdio.h>
#include <sched.h>
#include <errno.h>
#include "posixtest.h"
int sched_get_priority_min_1_1(int argc, char **argv)
{
int result = -1;
result = sched_get_priority_min(SCHED_RR);
if(result != -1 && errno == 0 ) {
printf("The minimum priority for policy SCHED_RR is %i.\n",
result);
printf("Test PASSED\n");
return PTS_PASS;
} else {
printf("%s\n", "An error occurs");
return PTS_FAIL;
}
printf("This code should not be executed.\n");
return PTS_UNRESOLVED;
}
【预期结果】
测试通过
【实际结果】
测试失败
【附件信息】
Hi saarloos, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: sig-embedded, and any of the maintainers: @wl1587 , @beiling.xie , @linzichang , @Wayne Ren
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论