Skip to content

Make first_frame tests robust against the Windows foreground lock - #13

Open
MehdiMamas wants to merge 1 commit into
mainfrom
hmw-first-frame-test
Open

MehdiMamas wants to merge 1 commit into
mainfrom
hmw-first-frame-test

Conversation

@MehdiMamas

Copy link
Copy Markdown
Owner

Refs #11.

Cause: the focus step is environmental. A background process can be refused SetForegroundWindow by the Windows foreground lock (HMW_NO_FOCUS). The target window is created without activation, so it is inactive either way. Not a regression in hider/normal_gate.

Changes (hmw-core/tests/first_frame.rs only):

  • focus is best effort: up to 5 attempts, then continue
  • quick_launch: fixed 150 ms sleep replaced by a bounded wait for 20 recorder samples

Local 3x run results to follow in a comment.

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.

1 participant