未验证 提交 40b6ba34 编写于 作者: O openharmony_ci 提交者: Gitee

!8387 feat:support EDF

Merge pull request !8387 from zhangdengyu/supportEDF0404
......@@ -204,8 +204,9 @@ HWTEST_F(PthreadSchedApiTest, testAttrSetSchedPolicyError, Function | MediumTest
// SCHED_FIFO is 1, and SCHED_RR is 2
const int testLoop = 7;
int invalidPolicy[testLoop] = {SCHED_OTHER, SCHED_BATCH, SCHED_IDLE, SCHED_DEADLINE, SCHED_RESET_ON_FORK};
invalidPolicy[5] = -GetRandom(10000);
int invalidPolicy[testLoop] = {SCHED_OTHER, SCHED_BATCH, SCHED_IDLE, SCHED_RESET_ON_FORK};
invalidPolicy[4] = GetRandom(10000);
invalidPolicy[5] = -GetRandom(10000) + 6;
invalidPolicy[6] = GetRandom(10000) + 6;
for (int i = 0; i < testLoop; i++) {
rt = pthread_attr_setschedpolicy(&attr, invalidPolicy[i]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册