未验证 提交 8c44c827 编写于 作者: O openharmony_ci 提交者: Gitee

!807 修复A核测试用例失败的问题

Merge pull request !807 from yinjiaming/sys_test
......@@ -34,6 +34,7 @@ static void *ThreadFuncTest(void *arg)
{
printf("Subthread starting infinite loop\n");
while (1) {
pthread_testcancel();
}
}
......@@ -80,6 +81,9 @@ static int ClockTest(void)
ret = ThreadClock("Subthread CPU time: ", clockid);
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
ret = pthread_cancel(thread);
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册