fix(agc): set the lease mirror switch with _putenv_s on Windows in the upload cache test #22366
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/22366"
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 oneandonlydean on 2026-11-17T12:56:14Z.
The upload cache read-only flush test called POSIX setenv unconditionally, so a Windows build with BUILD_TESTING=ON stops on
'setenv' was not declared in this scope. It now uses_putenv_son Windows, the same pattern Graphics.cpp already uses for the same switch (APS5_NO_LEASE_MIRROR).Fixes #22358
Test: the change is the compile of agc_driver_upload_cache_read_only_flush_tests on Windows, which fails on main (reporter's log,
e369d932fd) and builds with this change. I could not build on Windows here; the Linux branch of the code is unchanged.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-23T01:59:45Z.
Review: APPROVED
Reviewed — looks good
Nothing in the reviewed change blocks merging; it mirrors the existing platform-specific environment setup in Graphics.cpp, and the change is limited to the test's Windows branch.
What I ran
Reviewed head
89b4f265050c77f77977489f788c99bb8cbc680cusing the prepared diff and pinned repository reader. No build or test command was run; the author reports a Windows build but says they could not build it locally.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No build or runtime tests were run, including on Windows. Read:
description.md,commits.md,manifest.json,diff.patch, andcore/libs/prx/libSceAgcDriver/tests/execution/UploadCacheReadOnlyFlush.cpp(full file). The only changed file is included in the manifest;files.jsonwas not supplied in the reader listing.To get this to a good state
Nothing is required.
Pull request closed