From 52fd2e1db75aa3be7a017f6f2a98ee5379a29aad Mon Sep 17 00:00:00 2001 From: jiyong Date: Thu, 11 Mar 2021 20:30:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0=E8=8E=B7?= =?UTF-8?q?=E5=8F=96bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../parameter_posix/src/ParameterTest.cpp | 37 +------------------ 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/startup_lite/parameter_posix/src/ParameterTest.cpp b/startup_lite/parameter_posix/src/ParameterTest.cpp index 6b8bd207e..64a5b4205 100755 --- a/startup_lite/parameter_posix/src/ParameterTest.cpp +++ b/startup_lite/parameter_posix/src/ParameterTest.cpp @@ -23,8 +23,7 @@ namespace StartUpLite { static const int GET_DEF_PARA_FUN_MAX = 24; static const int MAX_LEN = 128; static const int WRONG_LEN = 2; - const int RELIABILITY_LOOP = 10000; - const int RELIABILITY_LEN = 32; + class ParameterTest : public testing::Test { protected: static void SetUpTestCase(void) @@ -366,38 +365,4 @@ HWTEST_F(ParameterTest, SUB_START_Para_Getting_ReadOnly_0010, Function | MediumT } } } - -/* * - * @tc.number : SUB_START_Para_Reliability_0010 - * @tc.name : API GetParameter Reliability test: obtaining valid system parameters - * @tc.desc : [C- SOFTWARE -0200] - */ -HWTEST_F(ParameterTest, SUB_START_Para_Reliability_0010, Function | MediumTest | Level0) -{ - int ret; - - char key[] = "rw.sys.version*%version"; - char value[StartUpLite::MAX_LEN] = {0}; - for (int loop = 0; loop <= StartUpLite::RELIABILITY_LOOP; loop++) { - ret = GetParameter(key, defSysParam.c_str(), value, StartUpLite::RELIABILITY_LEN); - EXPECT_EQ(ret, -9) << "ErrInfo: ret returnVal:='" << ret << "'"; - } -} - -/* * - * @tc.number : SUB_START_Para_Reliability_0020 - * @tc.name : API SetParameter Reliability test: obtaining valid system parameters - * @tc.desc : [C- SOFTWARE -0200] - */ -HWTEST_F(ParameterTest, SUB_START_Para_Reliability_0020, Function | MediumTest | Level0) -{ - int ret; - - char key[] = "rw.sys.version"; - char value[] = "OEM-10.1.0"; - for (int loop = 0; loop <= StartUpLite::RELIABILITY_LOOP; loop++) { - ret = SetParameter(key, value); - EXPECT_EQ(ret, 0) << "ErrInfo: ret returnVal:='" << ret << "'"; - } -} } \ No newline at end of file -- GitLab