Skip to content

Fixed recvfrom address in ipv4 nist tests #2529

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 25, 2016

Conversation

geky
Copy link
Contributor

@geky geky commented Aug 23, 2016

Previous behaviours overwrote server address on failures, causing spurious failures during CI.

continuation of #2404
cc @bridadan

Previous behaviours overwrote server address on failures

printf("UDP: Recved from NTP server %d Bytes \n", n);

if (n > 0) {
if (n > 0 && source == nist) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Potentially dumb question, but are you sure that the == comparison will do what you think it will here? I see that there currently isn't an explicit overloaded operator== in the SocketAddress class.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah good catch! Entertaining this compiled just fine.

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 24, 2016

+1

@bridadan
Copy link
Contributor

Awesome! Thanks @geky!

/morph test

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 700

All builds and test passed!

@bridadan
Copy link
Contributor

+1 from me!

@sg- Good for merge

@0xc0170 0xc0170 merged commit f3d652b into ARMmbed:master Aug 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants