qemu: power-signal test waits for the trap install (flare-edge-next) #24

Merged
noah merged 1 commits from lf-fix-sdk22-next into flare-edge-next 2026-10-17 21:19:48 -06:00
1 Commits
Author SHA1 Message Date
BFE EngineeringandClaude Opus 5.5 3b41543fba qemu: power-signal test waits for the trap install (#22)
ci / patches-apply (push) Successful in 18s
ci / qemu-tools (push) Successful in 47s
ci / kernel-build (push) Skipped
ci / test (push) Successful in 10s
ci / mcdc (push) Successful in 12s
ci / prune-artifacts (push) Skipped
ci / quality (push) Successful in 31s
ci / badges (push) Skipped
ci / bench (push) Successful in 5s
ci / test (pull_request) Successful in 13s
ci / mcdc (pull_request) Successful in 15s
ci / bench (pull_request) Successful in 6s
ci / patches-apply (pull_request) Successful in 23s
ci / prune-artifacts (pull_request) Skipped
ci / kernel-build (pull_request) Skipped
ci / badges (pull_request) Skipped
ci / qemu-tools (pull_request) Successful in 56s
ci / quality (pull_request) Successful in 33s
init-power-signals-test.sh slept a fixed 0.5 s before sending each signal.
On a loaded runner the shell had not installed its traps yet, so SIGTERM
took its default action and the case failed with nothing written.

Each case now polls /proc/<pid>/status until SigCgt has the signal's bit
(10 s hang backstop, WARDEN_TEST_TRAP_WAIT_S), and fails clearly if the
handler never appears. Regression: a case whose handler install is held
back 1.5 s (fails on the old fixed sleep), plus a check that the wait gives
up on a shell without a handler.

Fixes #22

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KerYPVh72hhNgKi3wS5ijG
2026-10-17 17:51:09 -06:00