Skip to content

automaton: raise on Windows WAIT_FAILED - #5238

Open
polybassa wants to merge 1 commit into
secdev:masterfrom
polybassa:fix-windows-wait-failed
Open

polybassa wants to merge 1 commit into
secdev:masterfrom
polybassa:fix-windows-wait-failed

Conversation

@polybassa

Copy link
Copy Markdown
Contributor

On Windows, ctypes can return WAIT_FAILED as -1, so select_objects() may treat it as an input index and report an unreadable object as ready. Raise the Windows error for failed waits and close temporary Winsock events before propagating it.

AI-Assisted: yes (GPT-6)

ctypes may return WAIT_FAILED as -1, which select_objects() treats as an input index and can report the last object ready. Raise the Windows error and close temporary Winsock events on failed waits.

AI-Assisted: yes (GPT-6)
@codecov

codecov Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.10%. Comparing base (9aa380f) to head (c567883).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5238      +/-   ##
==========================================
+ Coverage   78.01%   81.10%   +3.08%     
==========================================
  Files         376      394      +18     
  Lines       98351    98752     +401     
==========================================
+ Hits        76725    80088    +3363     
+ Misses      21626    18664    -2962     
Files with missing lines Coverage Δ
scapy/automaton.py 81.58% <100.00%> (+1.41%) ⬆️

... and 309 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@polybassa

Copy link
Copy Markdown
Contributor Author

@copilot resolve the merge conflicts in this pull request

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