From e738297c7f42fa1dbf1bad7ce40442af25ddbf66 Mon Sep 17 00:00:00 2001 From: rickpeters Date: Tue, 13 Oct 2026 20:11:59 +0200 Subject: [PATCH] Smoke test: pass when gamescope ran the program (it segfaults on headless exit) Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01KkpbsMw4rQyBsxDG6ebHK2 --- lib/gamescope-nvidia.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/gamescope-nvidia.sh b/lib/gamescope-nvidia.sh index 7b525d6..4e6f5ea 100644 --- a/lib/gamescope-nvidia.sh +++ b/lib/gamescope-nvidia.sh @@ -136,7 +136,8 @@ gsn_fetch_package() { gsn_smoke_test() { # The installed gamescope must start (headless, no screen needed): a build that crashes would leave gaming mode in a loop. - timeout 25 gamescope --backend headless -W 640 -H 360 -r 60 -- true >/dev/null 2>&1 + # It segfaults while shutting down headless (also unpatched builds), so what counts is that it ran the program. + timeout 25 gamescope --backend headless -W 640 -H 360 -r 60 -- true 2>&1 | grep -q 'Primary child shut down' } gsn_build_package() {