1 #include <gtest/gtest.h> 2 #include <sys/sysinfo.h> 3 4 using namespace testing::ext; 5 6 class ConfGetNprocsConfTest : public testing::Test { SetUp()7 void SetUp() override {} TearDown()8 void TearDown() override {} 9 }; 10 11 /** 12 * @tc.name: get_procs_001 13 * @tc.desc: Verify whether the get_nprocs_conf interface returns a configuration processor core count greater than or 14 * equal to 0. 15 * @tc.type: FUNC 16 */ 17 HWTEST_F(ConfGetNprocsConfTest, get_nprocs_conf_001, TestSize.Level1) 18 { 19 int numProcsConf = get_nprocs_conf(); 20 EXPECT_GE(numProcsConf, 0); 21 }