tests: call the saved QueryApiImpl through load_real_query() #2196
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2204"
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 R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-25T04:37:45Z.
What
tests/startup_gamesave_read_async.cppandtests/startup_gamesave_submit.cppnow call the savedQueryApiImplthroughload_real_query()instead of callingreal_querydirectly.Why
#2166 made
real_queryastd::atomic<QueryApi>insrc/startup_stubs/runtime_proxy.cpp. Calling an atomic function pointer directly is ambiguous on MSVC 19.44 (Visual Studio 2022 17.14). Both thevolatileand the non-volatileconversion operators ofstd::atomicare candidates, so the release build of currentmainstops with:load_real_query()is the acquire load that the proxy already uses for every other call. Behaviour is unchanged.Tests
Windows 11 build 26300, MSVC 19.44.35221,
releasepreset. Base:mainat19e04be9.startup_gamesave_submit_{controlled,system}andstartup_gamesave_read_async_{controlled,system}. The system cases ran against the installed gaming runtime (Gaming Services 39.118.30001.0) and were not skipped.Refs #2166
🤖 Generated with Claude Code
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T04:43:17Z.
Review: COMMENTED
Review of head
1d82ff22ce8bfec7343b6459169801316c1514c4: 0 P1, 0 P2.real_queryisstd::atomic<QueryApi>. Calling it directly is ambiguous on MSVC (C3066).load_real_query()is the acquire load already used by the proxy, so behaviour is unchanged and the two edits match the sibling call sites.Commands executed locally:
python3 tests/docs_links_check.py: pass (405 links)python3 tests/bidi_controls_check.py: passgit diff --check origin/main...HEAD: cleanx2w_pipe.py win2025 2204 --scope direct --targets startup_gamesave_submit,startup_gamesave_read_async --regex '^startup_gamesave_(read_async|submit)_': both builds PASS, controlled tests pass. The_systemvariants skip (capability skip, not counted as a pass).real_query(...)call intests/startup_gamesave_submit.cppand ran the same target on Windows: build fails witherror C3066: call to an object of this type is ambiguous. Reverted.Build and test on Windows: pass.AI-assisted; commands listed were executed locally.