casaroli opened a new pull request, #4186: URL: https://github.com/apache/nuttx-apps/pull/4186
## Summary New cases `test_udp_name_short4` and `test_udp_name_short6` in `cmocka_net_udp` (new file `udp/test_udp_name.c`). A UDP socket of `AF_INET` or `AF_INET6` connects to the loopback address, and `getsockname()` and `getpeername()` write its address into a buffer of 8 bytes. The calls must succeed, the buffer gets the first 8 bytes of the address, the bytes after it do not change, and `*addrlen` gives the length of the whole address, as on Linux. This is the test of apache/nuttx#22434. ## Impact Test only. No change to other cases. ## Testing qemu-armv8a:nsh (flat) with UDP, IPv4, IPv6 and loopback, CI image, QEMU TCG: on nuttx master with the fix of apache/nuttx#22434 reverted, both new cases FAILED (`errno(38)`, ENOSYS); on nuttx master both PASSED. The other 26 cases of `cmocka_net_udp` pass on both. Builds with `-Werror` in the CI image: qemu-armv8a:nsh (make and CMake), qemu-armv8a:knsh and rv-virt:knetnsh64 (kernel, `make import`), rv-virt:netnsh64. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
