Skip to content
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

test_address_info : EAI_AGAIN instead of EAI_NONAME #255

Open
PPN-SD opened this issue Nov 4, 2024 · 1 comment
Open

test_address_info : EAI_AGAIN instead of EAI_NONAME #255

PPN-SD opened this issue Nov 4, 2024 · 1 comment

Comments

@PPN-SD
Copy link

PPN-SD commented Nov 4, 2024

CPPUNIT_ASSERT(test_valid_ai_ref_err(std::bind(torrent::ai_get_addrinfo, "1.1.1.300", nullptr, nullptr, std::placeholders::_1), EAI_NONAME));

I get EAI_AGAIN instead of EAI_NONAME expected.

torrent/net::test_address_info:
torrent/net::test_address_info::test_basic
ai_ref_err got wrong error, expected 'Name or service not known', got 'Temporary failure in name resolution'
 : assertion

[...]

- Expression: test_valid_ai_ref_err(std::bind(torrent::ai_get_addrinfo, "1.1.1.
300", nullptr, nullptr, std::placeholders::_1), EAI_NONAME)

Failures !!!

If one is not more annoying than the other, a EAI_NONAME or EAI_AGAIN condition is possible ?

@rakshasa
Copy link
Owner

rakshasa commented Nov 7, 2024

I'd rather not change the test without a good reason why it is giving EAI_AGAIN, and that it is expected behavior for some environments.

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

No branches or pull requests

2 participants