From d96de12bbaae9f79e677327017a43f9319dc0cd4 Mon Sep 17 00:00:00 2001 From: zh Date: Tue, 10 Mar 2026 11:33:14 +0800 Subject: [PATCH] fix GetAotPath TDD case error Issue: https://gitcode.com/openharmony/ability_ability_runtime/issues/14676 Signed-off-by: zhuheng Co-Authored-By: NA --- test/unittest/runtime_test/ets_runtime_test.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/unittest/runtime_test/ets_runtime_test.cpp b/test/unittest/runtime_test/ets_runtime_test.cpp index ddccb7ba3f..84af23e720 100644 --- a/test/unittest/runtime_test/ets_runtime_test.cpp +++ b/test/unittest/runtime_test/ets_runtime_test.cpp @@ -483,10 +483,10 @@ HWTEST_F(EtsRuntimeTest, GetAotPath_006, TestSize.Level1) }; options.commonHspBundleInfos = hspInfos; auto result = etsRuntime->GetAotPath(options); - // Should contain the outer HSP path - EXPECT_NE(result.find("/data/service/el1/public/for-all-app/shared_bundles_ark_cache/"), std::string::npos); - EXPECT_NE(result.find("com.example.hsp1"), std::string::npos); - EXPECT_NE(result.find("hspModule1.an"), std::string::npos); + // Should not contain the outer HSP path + EXPECT_EQ(result.find("/data/service/el1/public/for-all-app/shared_bundles_ark_cache/"), std::string::npos); + EXPECT_EQ(result.find("com.example.hsp1"), std::string::npos); + EXPECT_EQ(result.find("hspModule1.an"), std::string::npos); } /** @@ -530,9 +530,9 @@ HWTEST_F(EtsRuntimeTest, GetAotPath_008, TestSize.Level1) }; options.commonHspBundleInfos = hspInfos; auto result = etsRuntime->GetAotPath(options); - // Should contain the outer HSP path - EXPECT_NE(result.find("com.example.hsp1"), std::string::npos); - EXPECT_NE(result.find("hspModule1.an"), std::string::npos); + // Should not contain the outer HSP path + EXPECT_EQ(result.find("com.example.hsp1"), std::string::npos); + EXPECT_EQ(result.find("hspModule1.an"), std::string::npos); } /**