You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In test case test_l1_dsAudio_negative_dsGetMS12AudioProfile(void), for the below negative scenario - Attempt to get MS12 Audio Profile with a null pointer dsGetMS12AudioProfile funtion is only called when gDSAudioPortConfiguration[i].ms12_audioprofilecount has value and not called in else case :
// Step 05: Attempt to get MS12 Audio Profile with a null pointer
if ((gSourceType == 0) && (gDSAudioPortConfiguration[i].ms12_audioprofilecount))
{
result = dsGetMS12AudioProfile(handle, NULL);
UT_ASSERT_EQUAL(result, dsERR_INVALID_PARAM);
}
else
{
UT_ASSERT_EQUAL(result, dsERR_OPERATION_NOT_SUPPORTED);
}
test case test_l1_dsAudio_positive_dsGetMS12AudioProfile:
memcmp return value should be compared with 0 value not with the size
result = dsGetMS12AudioProfileList(handle, &profileList1);
if (gSourceType == 0)
{
UT_ASSERT_EQUAL(result, dsERR_NONE);
// Step 04: Get the list of supported MS12 audio profiles for each port in new array
result = dsGetMS12AudioProfileList(handle, &profileList2);
UT_ASSERT_EQUAL(result, dsERR_NONE);
// Step 05: compare the values of profileList arrays
result = memcmp(profileList1.audioProfileList, profileList2.audioProfileList, sizeof(profileList1.audioProfileList));
**UT_ASSERT_EQUAL(result, sizeof(profileList1));**
}
Steps to reproduce
No response
Expected Behavior
Actual Behavior
Notes (Optional)
No response
The text was updated successfully, but these errors were encountered:
Problem/Opportunity
In test case test_l1_dsAudio_negative_dsGetMS12AudioProfile(void), for the below negative scenario - Attempt to get MS12 Audio Profile with a null pointer dsGetMS12AudioProfile funtion is only called when gDSAudioPortConfiguration[i].ms12_audioprofilecount has value and not called in else case :
test case test_l1_dsAudio_positive_dsGetMS12AudioProfile:
memcmp return value should be compared with 0 value not with the size
Steps to reproduce
No response
Expected Behavior
Actual Behavior
Notes (Optional)
No response
The text was updated successfully, but these errors were encountered: