mirror of
https://gitee.com/openharmony/developtools_hiperf
synced 2024-11-23 15:39:47 +00:00
补充UT用例
Signed-off-by:wenlong12 <wenlong12@huawei.com> Signed-off-by: wenlong12 <wenlong12@huawei.com>
This commit is contained in:
parent
86114cec31
commit
cfa69410a8
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user