Skip to content

Fix failing test cases for DNS unit tests #663

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged

Conversation

tony-josi-aws
Copy link
Member

Description

This PR fixes the failing test cases for DNS unit tests which were failing after the IPv6 integration changes.

NOTE: The unit test: test_CreateSocket_bind_fail from DNS_Networking unit test module has been removed as its not relevant to the DNS_CreateSocket function after IPv6 integration changes. The flow of binding is validated in a different test case (as part of the test cases for FreeRTOS_gethostbyname) instead.

Test Steps

cmake -S test/unit-test -B test/unit-test/build/ 
make -C test/unit-test/build/ all 
cd test/unit-test/build/
ctest -E system --output-on-failure --verbose

Related Issue

DNS unit test cases were failing due to the changes in the source code as part of the IPv6 integration

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@tony-josi-aws tony-josi-aws requested a review from a team as a code owner January 5, 2023 09:59
pxEndPoint = prvFillSockAddress( &xAddress, pcHostName );

xDNS_IP_Preference = xDNS_IP_Preference_Temp;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this neeeded?

Copy link
Member Author

@tony-josi-aws tony-josi-aws Jan 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thought of restoring back the xDNS_IP_Preference (if it was something else before) after we are done with the function call. Maybe we can remove that as xDNS_IP_Preference is not used anywhere else.

@tony-josi-aws tony-josi-aws merged commit f3b54f9 into FreeRTOS:dev/IPv6_integration Jan 9, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants