casaroli opened a new pull request, #4208: URL: https://github.com/apache/nuttx-apps/pull/4208
depends-on: apache/nuttx/pull/22582 ## Summary Add the case `stop-sigwait` to `testing/sched/waitstop`. A child has two threads: one waits for a blocked `SIGUSR2` with `sigtimedwait()` (3 s), the other gets the `SIGSTOP` of the parent. The parent continues the child, and after the 3 s sends `SIGUSR2`. Checks: - the `sigtimedwait()` fails with `EINTR` after the stop and the continue, as on Linux (signal(7)); - the next `sigwaitinfo()` of the thread gets the `SIGUSR2`: the timeout of the first wait does not end it. The child gives the result in its exit status (4 when both waits are right), so a child that ends in another way fails the check. Without pthreads the case prints SKIP. The case needs apache/nuttx#22582 (the `depends-on` line). ## Impact Test only: one more case in `waitstop`, about 4 s longer. No Kconfig dependency changes. ## Testing Run on Fedora in the NuttX CI image (gcc, `-Wno-cpp -Werror`), QEMU on the host, with apache/nuttx#22582: | Configuration | nuttx master | nuttx + #22582 | |---|---|---| | qemu-intel64:nsh (flat, x86_64, CMake) | `stop-sigwait` FAIL | PASS | | qemu-intel64:knsh_romfs (kernel, x86_64, CMake) | `stop-sigwait` FAIL (exit 6: the old timeout ends the second wait) | PASS | | qemu-armv8a:nsh_smp (flat SMP, arm64, Make) | `stop-sigwait` FAIL (exit 6) | PASS, all `waitstop` cases pass | | rv-virt:knsh64 (kernel, riscv64, Make + import) | `stop-sigwait` FAIL (exit 6) | PASS, all `waitstop` cases pass | | rv-virt:pnsh64 (protected), qemu-armv8a:knsh (kernel) | - | builds | The other cases do not change. On qemu-intel64:knsh_romfs, `kill-stopped` fails on nuttx master and with #22582 alike. `tools/checkpatch.sh -c -u -m -g` passes. -- 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]
