Close display verification races

This commit is contained in:
Gabriel Brown
2026-08-18 02:55:43 -04:00
parent efc53435a2
commit 0a18290137
5 changed files with 66 additions and 13 deletions
+10
View File
@@ -37,6 +37,8 @@ fail() {
for contract in \
'property var pendingRequested:' \
'property var revertExpected:' \
'property bool revertVerificationActive:' \
'property int revertGeneration:' \
'readonly property bool canConfirm:' \
'function matchesRequest(' \
'function scalesForMode(' \
@@ -180,6 +182,14 @@ done
run ipc show 2>/dev/null | rg -q '^target displays-test$' || fail 'test IPC target did not start'
harness_pid="$(run list | awk '/Process ID:/ { print $3; exit }')"
refresh_fixture="$(run ipc call displays-test refreshIdentityFixture)"
jq -e '
.count == 2
and .modes == ["[email protected]", "[email protected]"]
and .selected == ["[email protected]"]
' <<<"$refresh_fixture" >/dev/null \
|| fail "59.94 Hz and 60.00 Hz lost their distinct selection identity: $refresh_fixture"
for _ in $(seq 1 50); do
[[ "$(status | jq -r .count)" != "0" ]] && break
sleep 0.1