Skip to content

fix: don't blacklist resolutions during an active format test - #401

Open
Vamsi-2581 wants to merge 1 commit into
BZFlag-Dev:2.4from
Vamsi-2581:codex/format-test-race-88
Open

Vamsi-2581 wants to merge 1 commit into
BZFlag-Dev:2.4from
Vamsi-2581:codex/format-test-race-88

Conversation

@Vamsi-2581

Copy link
Copy Markdown

Fixes #88.

When a second test request arrives while a format test is active, setVideoFormat rejects it because the timer is running. FormatMenu::setFormat was treating every rejection as an unsupported resolution and permanently marking that mode unavailable. Expose the active-test state and ignore the duplicate test request before it is classified as a failed mode.

Validation: git diff --check passed. I did not run the BZFlag build or test suite locally.

AI assistance: OpenAI Codex helped prepare this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resolution testing race condition

1 participant