Skip to content

Fixes NUCLEO_F746ZG gethostbyname test compiled with IAR #5689

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

Conversation

jarlamsa
Copy link
Contributor

Description

Fixes intermittently failing gethostbyname test on NUCLEO_F746ZG compiled with IAR

Status

READY

#endif


const char *DNS_TEST_HOST = "connector.mbed.com";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hi
Please check #5576
I would like to be able to define this host name with MBED app json file.
Thx

@kjbracey
Copy link
Contributor

So, what gave the idea for the change? Is it just aligning it with other tests?

Is it maybe the case that MBED_DNS_TEST_HOST was defined to something different, so you've changed what we're resolving?

Or is it actually about those global variables you've just hidden by putting into a private namespace? Were they colliding with something?

@kjbracey
Copy link
Contributor

kjbracey commented Dec 12, 2017

Actually, didn't we establish that this was failing in the connect before doing the gethostbyname? Which would suggest it is those global variables.

Don't suppose the build muttered anything about multiple definition on the link, did it?

@jarlamsa
Copy link
Contributor Author

socket_sigio has similar setup than this test, so I started by aligning with that one, since it wasn't failing. I actually tested that the MBED_DNS_TEST_HOSTwas the one that caused this, changing it to const char * fixed the issue, but according to @jeromecoutant this actually doesn't allow user to change the host from MBED app json.

The private namespace I added there for safety precaution, like it has been done with other tests.

@kjbracey
Copy link
Contributor

Do you know whether MBED_DNS_TEST_HOST was predefined or not when failing? That choice of mbed.connector.com was in an ifndef.

@jarlamsa
Copy link
Contributor Author

Didn't at least see any definitions for it anywhere.

@jeromecoutant
Copy link
Collaborator

Note that #5576 is now merged,
so maybe issue #5622 will be closed by @0xc0170 or @kegilbert

@0xc0170
Copy link
Contributor

0xc0170 commented Dec 13, 2017

@jarlamsa Can you rebase this to get the latest changes ? Is this patch still needed?

@kjbracey
Copy link
Contributor

This should be closed - it's not a real fix. We'll carry on investigating in #5622

@0xc0170 0xc0170 closed this Dec 13, 2017
@jarlamsa jarlamsa deleted the nucleo-iar-netsocket-gethostbyname-test-fix branch December 14, 2017 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants