test(relinker): suppress Windows error dialog in occupied base collision check #5675
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5675"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-14T05:53:13Z.
What
ctypes.windll.kernel32.SetErrorMode(0x8003)(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX) during the Windows occupied base loader collision check intest_windows_fixed_base.py.STATUS_CONFLICTING_ADDRESSES(0xc0000018), allowingoutput.exeto fail immediately and eliminating test timeout failures on developer machines without disabled WER UI.Tested
test_windows_fixed_base.pyexecution time dropped from 5.0s timeout to a clean 1.90s pass.windows_fixed_base): passed in 1.90s.python tools/check_conventions.py --base origin/main: passed with zero findings.python tools/pr_overlap.py: zero conflicts with open pull requests.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-15T11:56:58Z.
Checked the diff:
SetErrorMode(0x8003)isSEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX, applies only underos.name == "nt", and the child process inherits the error mode, so the loader's0xc0000018fails without the WER dialog. Relinker and conventions checks are green; merging once the Windows build passes.