From 0cb81ae4f2bdf3de385143735dc32be64a142613 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Mar 2026 05:51:51 +0000 Subject: [PATCH 1/2] Initial plan From b017e7fae9bcb4d989449504d36c228fc4b6eaf2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Mar 2026 05:53:00 +0000 Subject: [PATCH 2/2] Fix profile_gtest.bin crash: reinitialize T2 marker component map after destroy in ClearMarkerComponentMapShouldRemoveEntries test Co-authored-by: yogeswaransky <166126056+yogeswaransky@users.noreply.github.com> Agent-Logs-Url: https://github.com/rdkcentral/telemetry/sessions/0ef5113d-796c-43d6-b467-2b713a9157aa --- source/test/bulkdata/profileTest.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/test/bulkdata/profileTest.cpp b/source/test/bulkdata/profileTest.cpp index e45f6658..92266fd5 100644 --- a/source/test/bulkdata/profileTest.cpp +++ b/source/test/bulkdata/profileTest.cpp @@ -507,6 +507,14 @@ TEST_F(ProfileTest, ClearMarkerComponentMapShouldRemoveEntries) { EXPECT_EQ(Vector_Size(eventComponentList), 0); EXPECT_EQ(destroyT2MarkerComponentMap(), T2ERROR_SUCCESS); + // Reinitialize for subsequent tests that depend on marker component map + EXPECT_CALL(*g_vectorMock, Vector_Create(_)) + .Times(::testing::AtMost(1)) + .WillRepeatedly(Return(T2ERROR_SUCCESS)); + EXPECT_CALL(*g_vectorMock, Vector_Destroy(_, _)) + .Times(::testing::AtMost(1)) + .WillRepeatedly(Return(T2ERROR_SUCCESS)); + EXPECT_EQ(initT2MarkerComponentMap(), T2ERROR_SUCCESS); } #endif