提交 99112bc8 编写于 作者: O openharmony_ci 提交者: Gitee

!807 【kenrel_lite】【openHarmony-3.0-LTS】该用例创建的线程太多,会导致系统中TCB资源不足而报错,所以将创建的线程改少点

Merge pull request !807 from limeng/kernel_lite_20210929_02_3.0LTS
......@@ -50,7 +50,7 @@ void *ThreadMutex(void *arg)
HWTEST_F(FutexTest, testPthreadMutex, Function | MediumTest | Level3)
{
pthread_mutex_t mtx;
const int loopNum = 10;
const int loopNum = 5;
pthread_t tid[loopNum];
EXPECT_EQ(pthread_mutex_init(&mtx, nullptr), 0) << "> return errno";
......@@ -504,7 +504,7 @@ void *ThreadSpinlock(void *arg)
HWTEST_F(FutexTest, testPthreadSpinlock, Function | MediumTest | Level3)
{
pthread_spinlock_t spinLock;
const int loopNum = 30;
const int loopNum = 5;
pthread_t tid[loopNum];
EXPECT_EQ(pthread_spin_init(&spinLock, 0), 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册