补充UT用例

Signed-off-by:wenlong12 <wenlong12@huawei.com>

Signed-off-by: wenlong12 <wenlong12@huawei.com>
This commit is contained in:
wenlong12 2024-01-30 18:26:00 +08:00
parent 86114cec31
commit cfa69410a8

View File

@ -659,7 +659,7 @@ HWTEST_F(UtilitiesTest, CanonicalizeSpecPath, TestSize.Level1)
HWTEST_F(UtilitiesTest, RecordStdoutInit, TestSize.Level1)
{
StdoutRecord stdnormaloutRecord("/data/local/tmp/hiperf_log.txt", "rw");
EXPECT_EQ(stdnormaloutRecord.Stop().empty(), true);
(void)stdnormaloutRecord.Stop();
StdoutRecord stdexceptoutRecord("/data/local/tmp/../hiperf_log.txt");
EXPECT_EQ(stdexceptoutRecord.Stop().empty(), true);
}