notes test: pause the game while the overlay is installed - #1632
Open
Alistair-Afton wants to merge 2 commits into
Open
Alistair-Afton wants to merge 2 commits into
Alistair-Afton wants to merge 2 commits into
Conversation
The notes overlay only draws map pins when the game is paused (in text mode). Pausing during test setup instead of relying on ambient pause state makes the tests robust against earlier tests leaving the game unpaused.
2 tasks
SilasD
requested changes
Sep 17, 2026
SilasD
left a comment
Contributor
There was a problem hiding this comment.
requested change: use the existing API.
Author
|
Done in cfdefba - both sites now use Also applied the same API in the dfhack-side pause handling ( |
Contributor
|
I'm fine with this now. for whatever reason, GitHub isn't letting me resolve those two conversations. maybe after I submit this comment. Edit: GitHub was just being slow or wonky. |
Contributor
|
What GitHub didn't do is show the approve button. maybe this time. Edit: nope. Maybe it's this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
overlay/notestests depend ondf.global.pause_statebeing true:NotesOverlay:onRenderFrame()skips drawing map pins when the game is unpaused in text mode.ensure_fortresspauses once when entering fortress mode). Any earlier test that leaves the game unpaused breaksrender_existing_notes(this happened in fix three plugin crash/UB bugs; test coverage for 14 plugins dfhack#5939 CI).install_notes_overlaynow saves and setspause_state;cleanuprestores it, matching the existing waypoint/overlay-state save-restore pattern in this file.Test plan
test -t overlay/notesin-game: 5/5 tests, 17/17 checks pass