aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-15 16:55:18 -0500
committerCraig Jennings <c@cjennings.net>2026-05-15 16:55:18 -0500
commit982b2f60b025727e58afea0b32358c7d361288e9 (patch)
tree2f44e2c5dc144673acfed67c6b7890758b6000f6 /modules
parent127d4541162b62ee6771f9cf998b9182f5dd2952 (diff)
downloaddotemacs-982b2f60b025727e58afea0b32358c7d361288e9.tar.gz
dotemacs-982b2f60b025727e58afea0b32358c7d361288e9.zip
test(recording): skip integration tests when screencast access fails
The three integration tests in test-video-audio-recording-process-cleanup spawn wf-recorder via cj/ffmpeg-record-video and assert on pgrep counts. They guard with executable-find and XDG_SESSION_TYPE checks, but neither catches the case where the subprocess can run wf-recorder yet lacks Wayland screencast permission. wf-recorder picks a region, retries "Failed to copy frame" 17 times, then exits with code 183 inside a second. The assertion fires against an empty pgrep. I added test-cleanup--can-capture-frames, which calls cj/ffmpeg-record-video against a temp dir, waits 1s, and checks pgrep. If wf-recorder didn't survive, the three integration tests skip. The result is cached, so the ~2.5s cost is paid once per batch. I added the same guard to test-integration-video-recording-multiple-start-stop-cycles. Its assertion is (= count initial-count), so it trivially passed in any environment where capture didn't work. Skipping is more honest than passing for the wrong reason.
Diffstat (limited to 'modules')
0 files changed, 0 insertions, 0 deletions