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

net: socket: getaddrinfo: net.socket.get_addr_info.timeout fails #70101

Closed
katgiadla opened this issue Mar 12, 2024 · 0 comments · Fixed by #70112
Closed

net: socket: getaddrinfo: net.socket.get_addr_info.timeout fails #70101

katgiadla opened this issue Mar 12, 2024 · 0 comments · Fixed by #70112
Assignees
Labels
area: Networking bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug

Comments

@katgiadla
Copy link
Contributor

Describe the bug
The test net.socket.get_addr_info.timeout fails.

Observed for:

  • nrf52840dk/nrf52840
  • nrf5340dk/nrf5340/cpuapp.

To Reproduce
Steps to reproduce the behavior:

  1. have nrf52840dk/nrf52840 connected
  2. go to your zephyr dir
  3. call ./scripts/twister -T tests/net/socket/getaddrinfo -p nrf52840dk/nrf52840 --device-testing --device-serial /dev/ttyACM0 -v --inline-logs
  4. See console output with error

Expected behavior
Valid console output

Impact
Not clear

Logs and console output

*** Booting Zephyr OS build v3.6.0-530-g7df7e834d910 ***
Running TESTSUITE net_socket_getaddrinfo
===================================================================
START - test_getaddrinfo_cancelled
Assertion failed at zephyr/tests/net/socket/getaddrinfo/src/main.c:265: net_socket_getaddrinfo_test_getaddrinfo_cancelled: (ret not equal to DNS_EAI_CANCELED)
Invalid result
FAIL - test_getaddrinfo_cancelled in 4.018 seconds
===================================================================
START - test_getaddrinfo_flags_numerichost
PASS - test_getaddrinfo_flags_numerichost in 0.001 seconds
===================================================================
START - test_getaddrinfo_ipv4_hints_ipv6
PASS - test_getaddrinfo_ipv4_hints_ipv6 in 0.001 seconds
===================================================================
START - test_getaddrinfo_ipv6_hints_ipv4
PASS - test_getaddrinfo_ipv6_hints_ipv4 in 0.001 seconds
===================================================================
START - test_getaddrinfo_no_host
PASS - test_getaddrinfo_no_host in 0.001 seconds
===================================================================
START - test_getaddrinfo_null_host
PASS - test_getaddrinfo_null_host in 0.001 seconds
===================================================================
START - test_getaddrinfo_num_ipv4
PASS - test_getaddrinfo_num_ipv4 in 0.001 seconds
===================================================================
START - test_getaddrinfo_num_ipv6
PASS - test_getaddrinfo_num_ipv6 in 0.002 seconds
===================================================================
START - test_getaddrinfo_ok
PASS - test_getaddrinfo_ok in 4.000 seconds
===================================================================
START - test_getaddrinfo_port_invalid
PASS - test_getaddrinfo_port_invalid in 0.001 seconds
===================================================================
TESTSUITE net_socket_getaddrinfo failed.
------ TESTSUITE SUMMARY START ------
SUITE FAIL -  90.00% [net_socket_getaddrinfo]: pass = 9, fail = 1, skip = 0, total = 10 duration = 8.027 seconds
- FAIL - [net_socket_getaddrinfo.test_getaddrinfo_cancelled] duration = 4.018 seconds
- PASS - [net_socket_getaddrinfo.test_getaddrinfo_flags_numerichost] duration = 0.001 seconds
- PASS - [net_socket_getaddrinfo.test_getaddrinfo_ipv4_hints_ipv6] duration = 0.001 seconds
- PASS - [net_socket_getaddrinfo.test_getaddrinfo_ipv6_hints_ipv4] duration = 0.001 seconds
- PASS - [net_socket_getaddrinfo.test_getaddrinfo_no_host] duration = 0.001 seconds
- PASS - [net_socket_getaddrinfo.test_getaddrinfo_null_host] duration = 0.001 seconds
- PASS - [net_socket_getaddrinfo.test_getaddrinfo_num_ipv4] duration = 0.001 seconds
- PASS - [net_socket_getaddrinfo.test_getaddrinfo_num_ipv6] duration = 0.002 seconds
- PASS - [net_socket_getaddrinfo.test_getaddrinfo_ok] duration = 4.000 seconds
- PASS - [net_socket_getaddrinfo.test_getaddrinfo_port_invalid] duration = 0.001 seconds
------ TESTSUITE SUMMARY END ------
===================================================================
RunID: 4ed514e737903c79b1080d8dbf279fa9
PROJECT EXECUTION FAILED

Environment (please complete the following information):

  • OS: Ubuntu 20.04.1 LTS
  • Toolchain Zephyr SDK 0.16.5
  • Commit SHA or Version used: v3.6.0-530-g7df7e834d910
@katgiadla katgiadla added the bug The issue is a bug, or the PR is fixing a bug label Mar 12, 2024
@nashif nashif added the priority: medium Medium impact/importance bug label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Networking bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants