diff --git a/test/unittest/common/native/hiperf_client_test.cpp b/test/unittest/common/native/hiperf_client_test.cpp index fea67d15b964b5ac2c9fe72197779f417bdfbb19..499a8d55495f11538760b119127d57969b7727bb 100644 --- a/test/unittest/common/native/hiperf_client_test.cpp +++ b/test/unittest/common/native/hiperf_client_test.cpp @@ -463,35 +463,6 @@ HWTEST_F(HiperfClientTest, SetReport, TestSize.Level1) TestCaseOption(opt); } - -HWTEST_F(HiperfClientTest, SetVecBranchSampleTypes, TestSize.Level1) -{ - StdoutRecord stdoutRecord; - stdoutRecord.Start(); - - HiperfClient::RecordOption opt; - std::vector selectPids = {getpid()}; - opt.SetSelectPids(selectPids); - std::vector vecBranchSampleTypes = {"any", "any_call", "any_ret", "ind_call", "u", "k"}; - opt.SetVecBranchSampleTypes(vecBranchSampleTypes); - HiperfClient::Client myHiperf; - myHiperf.SetDebugMode(); - - ASSERT_TRUE(myHiperf.IsReady()); -#ifdef is_ohos - ASSERT_EQ(myHiperf.Start(opt), false); -#else - ASSERT_TRUE(myHiperf.Start(opt)); - ASSERT_TRUE(myHiperf.Pause()); - std::this_thread::sleep_for(1s); - - ASSERT_TRUE(myHiperf.Resume()); - std::this_thread::sleep_for(1s); - - ASSERT_TRUE(myHiperf.Stop()); -#endif - stdoutRecord.Stop(); -} } // namespace HiPerf } // namespace Developtools } // namespace OHOS diff --git a/test/unittest/common/native/subcommand_record_test.cpp b/test/unittest/common/native/subcommand_record_test.cpp index 0a198618b869d72b07f14c1ea3f64d4ca852ba34..824523080f8f2c97e65ef23604218a542f806107 100644 --- a/test/unittest/common/native/subcommand_record_test.cpp +++ b/test/unittest/common/native/subcommand_record_test.cpp @@ -606,56 +606,6 @@ HWTEST_F(SubCommandRecordTest, CpuOff, TestSize.Level1) ForkAndRunTest("-d 2 --offcpu -o /data/local/tmp/offcpu_perf.data"); } -HWTEST_F(SubCommandRecordTest, BranchFilterAny, TestSize.Level1) -{ -#if is_ohos - TestRecordCommand("-d 2 -j any ", false); // broad doesn't support -#else - ForkAndRunTest("-d 2 -j any "); -#endif -} - -HWTEST_F(SubCommandRecordTest, BranchFilterAnyCall, TestSize.Level1) -{ -#if is_ohos - TestRecordCommand("-d 2 -j any_call ", false); // broad doesn't support -#else - ForkAndRunTest("-d 2 -j any_call "); -#endif -} - -HWTEST_F(SubCommandRecordTest, BranchFilterIndCall, TestSize.Level1) -{ -#if is_ohos - TestRecordCommand("-d 2 -j ind_call ", false); // broad doesn't support -#else - ForkAndRunTest("-d 2 -j ind_call "); -#endif -} - -HWTEST_F(SubCommandRecordTest, BranchFilterAnyRet, TestSize.Level1) -{ -#if is_ohos - TestRecordCommand("-d 2 -j any_ret ", false); // broad doesn't support -#else - ForkAndRunTest("-d 2 -j any_ret "); -#endif -} - -HWTEST_F(SubCommandRecordTest, BranchFilterOnlyCall, TestSize.Level1) -{ - TestRecordCommand("-d 2 -j call ", false); -} - -HWTEST_F(SubCommandRecordTest, BranchFilterAll, TestSize.Level1) -{ -#if is_ohos - TestRecordCommand("-d 2 -j any,any_call,any_ret,ind_call,u,k ", false); // broad doesn't support -#else - ForkAndRunTest("-d 2 -j any,any_call,any_ret,ind_call,u,k "); -#endif -} - HWTEST_F(SubCommandRecordTest, BranchFilterInputErr, TestSize.Level1) { TestRecordCommand("-d 2 -j what ", false);