casaroli opened a new pull request, #4187: URL: https://github.com/apache/nuttx-apps/pull/4187
## Summary Two cases for `cmocka_net_tun` (new file `tun/test_tun_signal.c`): a `read()` of the TUN device that waits for a packet, and a `write()` that waits until the reader takes the reply of the stack (a RST to a SYN for a closed port), must end with `EINTR` when a signal comes (SIGUSR1, handler without `SA_RESTART`, after 200 ms). If the call does not end, the case takes the interface down after 2 seconds: the call then ends with `ENETDOWN`, and the case fails instead of waiting for ever. This is the test of apache/nuttx#22432. ## Impact Test only. The new cases use the interface 10.79.0.1/24; the TCP cases keep 10.78.0.1/24. ## Testing qemu-armv8a:nsh (flat) with `NET_TUN`, CI image, QEMU TCG: on nuttx master with the fix of apache/nuttx#22432 reverted, both new cases FAILED (the call went on after the signal, and the interface down ended it); on nuttx master both PASSED. The 4 TCP cases of `cmocka_net_tun` 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]
