Skip to content

Commit

Permalink
gh #47 L1 issue fix
Browse files Browse the repository at this point in the history
* test_l1_tvSettings_positive_GetTVSupportedPictureModes memory
  allocation issue
  • Loading branch information
akhilbhas committed Oct 18, 2024
1 parent 75a49cc commit 14e87b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test_l1_tvSettings.c
Original file line number Diff line number Diff line change
Expand Up @@ -9035,8 +9035,8 @@ void test_l1_tvSettings_positive_GetTVSupportedPictureModes (void)
UT_LOG("In:%s [%02d%03d]", __FUNCTION__,gTestGroup,gTestID);

tvError_t result = tvERROR_NONE;
pic_modes_t *tvPicModes= NULL;
pic_modes_t *tvPicModesRetry= NULL;
pic_modes_t tvPicModes[PIC_MODES_SUPPORTED_MAX];
pic_modes_t tvPicModesRetry[PIC_MODES_SUPPORTED_MAX];
bool IsPictureModeValid = true;
unsigned short sizeReceived = 0;
unsigned short sizeReceivedRetry = 0;
Expand All @@ -9049,10 +9049,10 @@ void test_l1_tvSettings_positive_GetTVSupportedPictureModes (void)
UT_ASSERT_EQUAL_FATAL(result, tvERROR_NONE);

/* Step 02: Calling tvsettings GetTVSupportedPictureModes and expectinging the API to return success */
pqCount = UT_KVP_PROFILE_GET_LIST_COUNT("tvSettings/PictureMode/index");
result = GetTVSupportedPictureModes(&tvPicModes, &sizeReceived);
UT_ASSERT_EQUAL(result, tvERROR_NONE);
UT_ASSERT_EQUAL(sizeReceived, (unsigned short)pqCount);
pqCount = UT_KVP_PROFILE_GET_LIST_COUNT("tvSettings/PictureMode/index");


for (unsigned int i = 0; i < pqCount; i++)
Expand Down

0 comments on commit 14e87b1

Please sign in to comment.