|
|
|
@ -28,71 +28,71 @@
|
|
|
|
|
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
|
|
|
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
*/
|
|
|
|
|
// 包含标准输入输出头文件
|
|
|
|
|
// 包含标准输入输出头文件
|
|
|
|
|
#include "stdio.h"
|
|
|
|
|
// 包含C标准库中的极限定义
|
|
|
|
|
// 包含C标准库中的极限定义
|
|
|
|
|
#include <climits>
|
|
|
|
|
// 包含Google Test测试框架头文件
|
|
|
|
|
// 包含Google Test测试框架头文件
|
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
|
// 包含自定义的pthread测试头文件
|
|
|
|
|
// 包含自定义的pthread测试头文件
|
|
|
|
|
#include "it_pthread_test.h"
|
|
|
|
|
// 包含系统资源库头文件
|
|
|
|
|
// 包含系统资源库头文件
|
|
|
|
|
#include <sys/resource.h>
|
|
|
|
|
|
|
|
|
|
// 使用Google Test框架的扩展命名空间
|
|
|
|
|
// 使用Google Test框架的扩展命名空间
|
|
|
|
|
using namespace testing::ext;
|
|
|
|
|
|
|
|
|
|
// 定义一个名为OHOS的命名空间,用于封装测试代码
|
|
|
|
|
// 定义一个名为OHOS的命名空间,用于封装测试代码
|
|
|
|
|
namespace OHOS {
|
|
|
|
|
// 定义一个测试类ProcessPthreadTest,它继承自Google Test框架的Test类
|
|
|
|
|
// 定义一个测试类ProcessPthreadTest,它继承自Google Test框架的Test类
|
|
|
|
|
class ProcessPthreadTest : public testing::Test {
|
|
|
|
|
public:
|
|
|
|
|
// 测试套件开始前调用的静态成员函数,用于设置测试环境
|
|
|
|
|
// 测试套件开始前调用的静态成员函数,用于设置测试环境
|
|
|
|
|
static void SetUpTestCase(void) {
|
|
|
|
|
struct sched_param param = { 0 }; // 定义调度参数结构体
|
|
|
|
|
int currThreadPolicy, ret; // 定义当前线程策略和返回值变量
|
|
|
|
|
// 获取当前线程的调度参数
|
|
|
|
|
struct sched_param param = { 0 }; // 定义调度参数结构体
|
|
|
|
|
int currThreadPolicy, ret; // 定义当前线程策略和返回值变量
|
|
|
|
|
// 获取当前线程的调度参数
|
|
|
|
|
ret = pthread_getschedparam(pthread_self(), &currThreadPolicy, ¶m);
|
|
|
|
|
// 断言返回值为0,如果不为0则用-ret作为错误码
|
|
|
|
|
// 断言返回值为0,如果不为0则用-ret作为错误码
|
|
|
|
|
ICUNIT_ASSERT_EQUAL_VOID(ret, 0, -ret);
|
|
|
|
|
// 设置线程的调度优先级
|
|
|
|
|
// 设置线程的调度优先级
|
|
|
|
|
param.sched_priority = TASK_PRIO_TEST;
|
|
|
|
|
// 设置当前线程的调度参数
|
|
|
|
|
// 设置当前线程的调度参数
|
|
|
|
|
ret = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m);
|
|
|
|
|
// 断言返回值为0,如果不为0则用-ret作为错误码
|
|
|
|
|
// 断言返回值为0,如果不为0则用-ret作为错误码
|
|
|
|
|
ICUNIT_ASSERT_EQUAL_VOID(ret, 0, -ret);
|
|
|
|
|
}
|
|
|
|
|
// 测试套件结束后调用的静态成员函数,用于清理测试环境(这里为空实现)
|
|
|
|
|
// 测试套件结束后调用的静态成员函数,用于清理测试环境(这里为空实现)
|
|
|
|
|
static void TearDownTestCase(void) {}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#if defined(LOSCFG_USER_TEST_SMOKE)
|
|
|
|
|
// 如果定义了LOSCFG_USER_TEST_SMOKE,则编译并执行以下测试用例
|
|
|
|
|
// 如果定义了LOSCFG_USER_TEST_SMOKE,则编译并执行以下测试用例
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_003
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
// 定义测试用例ItTestPthread003
|
|
|
|
|
// 定义测试用例ItTestPthread003
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread003, TestSize.Level0) {
|
|
|
|
|
ItTestPthread003();
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef LOSCFG_USER_TEST_SMP
|
|
|
|
|
// 如果未定义LOSCFG_USER_TEST_SMP,则编译并执行以下测试用例
|
|
|
|
|
// 如果未定义LOSCFG_USER_TEST_SMP,则编译并执行以下测试用例
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_006
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
// 定义测试用例ItTestPthread006
|
|
|
|
|
// 定义测试用例ItTestPthread006
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread006, TestSize.Level0) {
|
|
|
|
|
ItTestPthread006();
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// 以下是其他测试用例的定义,每个测试用例都有相应的注释说明其功能和类型
|
|
|
|
|
// 以下是其他测试用例的定义,每个测试用例都有相应的注释说明其功能和类型
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_007
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
@ -234,4 +234,429 @@ HWTEST_F(ProcessPthreadTest, ItTestPthread022, TestSize.Level0) {
|
|
|
|
|
* @tc.require: issueI6T3P3
|
|
|
|
|
* @tc.author:
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestP
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestP/*
|
|
|
|
|
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
|
|
|
|
|
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* Redistribution and use in source and binary forms, with or without modification,
|
|
|
|
|
* are permitted provided that the following conditions are met:
|
|
|
|
|
*
|
|
|
|
|
* 1. Redistributions of source code must retain the above copyright notice, this list of
|
|
|
|
|
* conditions and the following disclaimer.
|
|
|
|
|
*
|
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
|
|
|
|
* of conditions and the following disclaimer in the documentation and/or other materials
|
|
|
|
|
* provided with the distribution.
|
|
|
|
|
*
|
|
|
|
|
* 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
|
|
|
|
* to endorse or promote products derived from this software without specific prior written
|
|
|
|
|
* permission.
|
|
|
|
|
*
|
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
|
|
|
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
|
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
|
|
|
|
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
|
|
|
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
|
|
|
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
|
|
|
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
|
|
|
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
|
|
|
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
|
|
|
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "stdio.h" // 引入标准输入输出头文件
|
|
|
|
|
#include <climits> // 引入字符类型限制头文件
|
|
|
|
|
#include <gtest/gtest.h> // 引入google测试框架头文件
|
|
|
|
|
#include "it_pthread_test.h" // 引入自定义的pthread测试头文件
|
|
|
|
|
#include <sys/resource.h> // 引入系统资源头文件
|
|
|
|
|
|
|
|
|
|
using namespace testing::ext; // 使用google测试框架的扩展命名空间
|
|
|
|
|
namespace OHOS { // 定义OHOS命名空间
|
|
|
|
|
class ProcessPthreadTest : public testing::Test { // 定义一个继承自testing::Test的测试类
|
|
|
|
|
public:
|
|
|
|
|
static void SetUpTestCase(void) // 静态成员函数,用于在所有测试开始前执行
|
|
|
|
|
{
|
|
|
|
|
struct sched_param param = { 0 }; // 定义一个sched_param结构体并初始化为0
|
|
|
|
|
int currThreadPolicy, ret; // 定义当前线程策略和返回值变量
|
|
|
|
|
ret = pthread_getschedparam(pthread_self(), &currThreadPolicy, ¶m); // 获取当前线程的调度参数
|
|
|
|
|
ICUNIT_ASSERT_EQUAL_VOID(ret, 0, -ret); // 使用自定义宏断言返回值是否为0
|
|
|
|
|
param.sched_priority = TASK_PRIO_TEST; // 设置调度优先级为TASK_PRIO_TEST(未在代码中定义)
|
|
|
|
|
ret = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); // 设置当前线程的调度策略和参数
|
|
|
|
|
ICUNIT_ASSERT_EQUAL_VOID(ret, 0, -ret); // 使用自定义宏断言返回值是否为0
|
|
|
|
|
}
|
|
|
|
|
static void TearDownTestCase(void) {} // 静态成员函数,用于在所有测试结束后执行,此处为空实现
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#if defined(LOSCFG_USER_TEST_SMOKE) // 如果定义了LOSCFG_USER_TEST_SMOKE宏
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_003
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread003, TestSize.Level0) // 定义一个测试用例
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread003(); // 调用ItTestPthread003函数(未在代码中定义)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#ifndef LOSCFG_USER_TEST_SMP // 如果没有定义LOSCFG_USER_TEST_SMP宏
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_006
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread006, TestSize.Level0) // 定义一个测试用例
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread006(); // 调用ItTestPthread006函数(未在代码中定义)
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_007
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread007, TestSize.Level0) // 定义一个测试用例
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread007(); // 调用ItTestPthread007函数(未在代码中定义)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_008
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread008, TestSize.Level0) // 定义一个测试用例
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread008(); // 调用ItTestPthread008函数(未在代码中定义)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_009
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread009, TestSize.Level0) // 定义一个测试用例
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread009(); // 调用ItTestPthread009函数(未在代码中定义)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#ifndef LOSCFG_USER_TEST_SMP // 如果没有定义LOSCFG_USER_TEST_SMP宏
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_010
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread010, TestSize.Level0) // 定义一个测试用例
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread010(); // 调用ItTestPthread010函数(未在代码中定义)
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_011
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread011, TestSize.Level0) // 定义一个测试用例
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread011(); // 调用ItTestPthread011函数(未在代码中定义)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_012
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread012, TestSize.Level0) // 定义一个测试用例
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread012(); // 调用ItTestPthread012函数(未在代码中定义)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_013
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread013, TestSize.Level0) // 定义一个测试用例
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread013(); // 调用ItTestPthread013函数(未在代码中定义)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_015
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread015, TestSize.Level0) // 定义一个测试用例
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread015(); // 调用ItTestPthread015函数(未在代码中定义)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_016
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread016, TestSize.Level0) // 定义一个测试用例
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread016(); // 调用ItTestPthread016函数(未在代码中定义)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_018
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread018, TestSize.Level0) // 定义一个测试用例
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread018(); // 调用ItTestPthread018函数(未在代码中定义)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_019
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread019, TestSize.Level0) // 定义一个测试用例
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread019(); // 调用ItTestPthread019函数(未在代码中定义)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_020
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
* @tc.require: issueI6T3P3
|
|
|
|
|
* @tc.author:
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread020, TestSize.Level0) // 定义一个测试用例
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread020(); // 调用ItTestPthread020函数(未在代码中定义)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_021
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
* @tc.require: issueI6T3P3
|
|
|
|
|
* @tc.author:
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread021, TestSize.Level0)
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread021();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_022
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
* @tc.require: issueI6T3P3
|
|
|
|
|
* @tc.author:
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread022, TestSize.Level0)
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread022();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_024
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
* @tc.require: issueI6T3P3
|
|
|
|
|
* @tc.author:
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread024, TestSize.Level0)
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread024();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_026
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
* @tc.require: issueI6T3P3
|
|
|
|
|
* @tc.author:
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread026, TestSize.Level0)
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread026();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_027
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
* @tc.require: issueI6T3P3
|
|
|
|
|
* @tc.author:
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread027, TestSize.Level0)
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread027();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_023
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
* @tc.require: issueI6T3P3
|
|
|
|
|
* @tc.author:
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread023, TestSize.Level0)
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread023();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_025
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
* @tc.require: issueI6T3P3
|
|
|
|
|
* @tc.author:
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread025, TestSize.Level0)
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread025();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_017
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread017, TestSize.Level0)
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread017();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_once_001
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthreadOnce001, TestSize.Level0)
|
|
|
|
|
{
|
|
|
|
|
ItTestPthreadOnce001();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_atfork_001
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthreadAtfork001, TestSize.Level0)
|
|
|
|
|
{
|
|
|
|
|
ItTestPthreadAtfork001();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_atfork_002
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthreadAtfork002, TestSize.Level0)
|
|
|
|
|
{
|
|
|
|
|
ItTestPthreadAtfork002();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_cond_001
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthreadCond001, TestSize.Level0)
|
|
|
|
|
{
|
|
|
|
|
ItTestPthreadCond001();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_cond_002
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthreadCond002, TestSize.Level0)
|
|
|
|
|
{
|
|
|
|
|
ItTestPthreadCond002();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_cond_003
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthreadCond003, TestSize.Level0)
|
|
|
|
|
{
|
|
|
|
|
ItTestPthreadCond003();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_cond_004
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthreadCond004, TestSize.Level0)
|
|
|
|
|
{
|
|
|
|
|
ItTestPthreadCond004();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if defined(LOSCFG_USER_TEST_FULL)
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_001
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread001, TestSize.Level0)
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread001();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#ifndef LOSCFG_USER_TEST_SMP
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_002
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread002, TestSize.Level0)
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread002();
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_004
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread004, TestSize.Level0)
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread004();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_005
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread005, TestSize.Level0)
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread005();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#ifndef LOSCFG_USER_TEST_SMP
|
|
|
|
|
/* *
|
|
|
|
|
* @tc.name: it_test_pthread_014
|
|
|
|
|
* @tc.desc: function for ProcessPthreadTest
|
|
|
|
|
* @tc.type: FUNC
|
|
|
|
|
*/
|
|
|
|
|
HWTEST_F(ProcessPthreadTest, ItTestPthread014, TestSize.Level0)
|
|
|
|
|
{
|
|
|
|
|
ItTestPthread014();
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
} // namespace OHOS
|
|
|
|
|