mirror of
https://github.com/lucannez64/darling-lol.git
synced 2026-10-26 19:47:42 +00:00
Make the CFHost cancel probe wait for delivery and reject completed lookups
Wait up to 2 s for the cancellation callback instead of one 50 ms run-loop pass, count only callbacks without stored addresses so a completed lookup cannot pass as a cancellation, print the failing stage, and have the runner require the exact success line since Darling can exit zero after a trap. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
67626612ac
commit
72093a1b58
3 files changed
+27
-8
No files matched your search
+4
-2
@@ -406,7 +406,9 @@ python3 build/runtime/tools/run-riot-native-check.py riot-cfhost-cancel-check
|
||||
|
||||
Run against the installed CFNetwork override. Expect
|
||||
`CFHOST_CANCEL_CHECK cancel callback lifetime repeated pass=1`. The unpatched
|
||||
library traps in `CFRetain(NULL)`; the runner checks the success marker because
|
||||
library traps in `CFRetain(NULL)`; the runner requires the exact success line because
|
||||
Darling can return status zero even when the guest traps. The probe uses localhost
|
||||
and exercises 100 cancellations with both retained and early-released caller
|
||||
references, without launching or inspecting Riot.
|
||||
references, without launching or inspecting Riot. A failure prints
|
||||
`CFHOST_CANCEL_CHECK fail stage=...`; `unexpected-callback` means a completed
|
||||
lookup arrived instead of the cancellation.
|
||||
Reference in new issue
Block a user