From b74fe2e9e1f4f53eeddd455066fba20d899942ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=88=E7=9A=93=E6=9D=B0?= Date: Thu, 14 Nov 2024 16:58:37 +0800 Subject: [PATCH] =?UTF-8?q?ut=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 师皓杰 --- moduletest/dtbschedmgr_lite/source/famgr_test.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/moduletest/dtbschedmgr_lite/source/famgr_test.cpp b/moduletest/dtbschedmgr_lite/source/famgr_test.cpp index 9c06bbf..c6f03a4 100644 --- a/moduletest/dtbschedmgr_lite/source/famgr_test.cpp +++ b/moduletest/dtbschedmgr_lite/source/famgr_test.cpp @@ -83,9 +83,7 @@ HWTEST_F(FamgrTest, StartRemoteAbility_001, TestSize.Level1) { PreprareBuild(); Want want; - if (FillWant(&want, "ohos.dms.example", "MainAbility") != 0) { - return; - } + ASSERT_EQ(FillWant(&want, "ohos.dms.example", "MainAbility"), 0); CallerInfo callerInfo = { .uid = 0 @@ -114,9 +112,7 @@ HWTEST_F(FamgrTest, StartRemoteAbility_002, TestSize.Level1) { PreprareBuild(); Want want; - if (FillWant(&want, "ohos.dms.example", "MainAbility") != 0) { - return; - } + ASSERT_EQ(FillWant(&want, "ohos.dms.example", "MainAbility"), 0); StartRemoteAbility(&want, nullptr, nullptr); auto onTlvParseDone = [] (int8_t errCode, const void *dmsMsg) { EXPECT_NE(errCode, DMS_TLV_SUCCESS);