casaroli opened a new pull request, #4168: URL: https://github.com/apache/nuttx-apps/pull/4168
depends-on: apache/nuttx#22430 ## Summary New `accept()` cases: - `cmocka_net_tcp`: `test_tcp_accept_rcvtimeo` (`accept()` on a listener with `SO_RCVTIMEO` of 300 ms and no client fails with `EAGAIN` after the timeout), `test_tcp_accept_addrlen` (`accept()` gives the address of the client cut to the size of the buffer and the whole length in `addrlen`, also for a buffer of 8 bytes; it writes nothing after the address). - `cmocka_net_local`: `test_local_accept_rcvtimeo`, the same timeout for a local stream socket. A client connects after 3 seconds, so that an `accept()` that ignores the timeout still returns and the case fails instead of waiting for ever. ## Impact Test only. Without apache/nuttx#22430 the 3 cases fail. ## Testing | Config | master 453cafdc4dd | apache/nuttx#22430 | |---|---|---| | qemu-armv8a:knsh (kernel), QEMU TCG, 3 boots | `test_tcp_accept_rcvtimeo` and `test_local_accept_rcvtimeo` FAIL (`accept()` returns the late client), `test_tcp_accept_addrlen` FAIL (`EINVAL` for the 8-byte buffer), 3 of 3 | all pass, 3 of 3 | | qemu-armv8a:nsh (flat), TCG, 1 boot | the same | all pass | | qemu-intel64:knsh_romfs (kernel, CMake), KVM, 1 boot | the same | all pass | Builds with `-Werror` in the CI image: qemu-armv8a:knsh and :nsh, rv-virt:knsh and :nsh, qemu-intel64:knsh_romfs (CMake). -- 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]
