fix: preserve GPUI lifetime and avoid WASAPI silence warnings
This commit is contained in:
@@ -128,6 +128,26 @@ else
|
||||
result "${name}" 1
|
||||
fi
|
||||
|
||||
# 10. Silence is healthy: no playback streams, idle >10s before monitor capture.
|
||||
for mode in silence muted-mic; do
|
||||
name="audio-${mode}"
|
||||
mic=""
|
||||
setup=""
|
||||
if [[ "${mode}" == muted-mic ]]; then
|
||||
mic="--mic"
|
||||
setup="pactl set-default-source clipbin-rig-sink.monitor; pactl set-source-mute clipbin-rig-sink.monitor 1;"
|
||||
fi
|
||||
CLIPBIN_RIG_NO_AUDIO=1 "${rig}" bash -c "sleep 12; test -z \"\$(pactl list short sink-inputs)\" || exit 1; pactl list short sinks | grep SUSPENDED || exit 1; ${setup} '${probe}' record ${mic} --seconds 16 --out '${out}/${name}'; status=\$?; pactl list short sinks; exit \$status" \
|
||||
> "${out}/${name}.log" 2>&1
|
||||
probe_exit=$?
|
||||
if [[ "${probe_exit}" == 0 ]] && has "${out}/${name}.log" "status=Recording" \
|
||||
&& ! has "${out}/${name}.log" "status=(degraded|failed)"; then
|
||||
result "${name}" 0 "no playback for >10s, capture remains healthy"
|
||||
else
|
||||
result "${name}" 1
|
||||
fi
|
||||
done
|
||||
|
||||
echo
|
||||
if [[ "${failures}" == 0 ]]; then
|
||||
echo "All scenarios passed. Logs in ${out}"
|
||||
|
||||
Reference in New Issue
Block a user