From 7bdcdf9a372d3216032d7d7a473a9e752c9430ca Mon Sep 17 00:00:00 2001 From: xijiandong Date: Sat, 14 Jun 2025 23:27:29 +0800 Subject: [PATCH] test tdd Signed-off-by: xijiandong --- test/unittest/want_agent_helper_test/want_agent_helper_test.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unittest/want_agent_helper_test/want_agent_helper_test.cpp b/test/unittest/want_agent_helper_test/want_agent_helper_test.cpp index 1b58b7e0509..a160eb5f6fa 100644 --- a/test/unittest/want_agent_helper_test/want_agent_helper_test.cpp +++ b/test/unittest/want_agent_helper_test/want_agent_helper_test.cpp @@ -1403,5 +1403,6 @@ HWTEST_F(WantAgentHelperTest, WantAgentHelper_6600, Function | MediumTest | Leve std::string actualBundleName; const auto retCode = WantAgentHelper::GetBundleName(wantAgent, actualBundleName); ASSERT_TRUE(retCode == ERR_ABILITY_RUNTIME_EXTERNAL_INVALID_PARAMETER); + ASSERT_TRUE(retCode != 0); } } // namespace OHOS::AbilityRuntime::WantAgent -- Gitee