提交 8a1f7277 编写于 作者: Z zhuqingxi

update hiviewdfx testcases

Signed-off-by: Nzhuqingxi <zhuqingxi@huawei.com>
上级 23974726
......@@ -46,11 +46,6 @@ void LibhilogCPPtest::TearDown()
}
void LibhilogCPPtest::SetUpTestCase()
{
std::vector<std::string> cmdret;
string cmd = "setprop persist.sys.hilog.debug.on false";
ExecCmdWithRet(cmd, cmdret);
cmd = "setprop hilog.debug.on false";
ExecCmdWithRet(cmd, cmdret);
}
void LibhilogCPPtest::TearDownTestCase()
{
......
......@@ -49,11 +49,6 @@ void LibhilogCtest::TearDown()
}
void LibhilogCtest::SetUpTestCase()
{
std::vector<std::string> cmdret;
string cmd = "setprop persist.sys.hilog.debug.on false";
ExecCmdWithRet(cmd, cmdret);
cmd = "setprop hilog.debug.on false";
ExecCmdWithRet(cmd, cmdret);
}
void LibhilogCtest::TearDownTestCase()
{
......
......@@ -39,11 +39,7 @@ private:
void HiSysEventCPPTest::SetUp()
{
std::cout << "SetUp" << std::endl;
std::vector<std::string> cmdret;
string cmd = "hilog -r";
ExecCmdWithRet(cmd, cmdret);
cmd = "setprop persist.sys.hilog.debug.on false";
ExecCmdWithRet(cmd, cmdret);
CleanCmd();
}
void HiSysEventCPPTest::TearDown()
{
......
......@@ -87,6 +87,7 @@ void CleanCmd()
std::string cleanCmd = "hilog -r";
CmdRun(cleanCmd, cmdResult);
std::cout << cmdResult;
sleep(1);
}
std::string ExecuteCmd(std::string cmd)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册