fix(tests): set upload cache environment on Windows #22634
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/22634"
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 paulk161 on 2026-11-17T23:40:57Z.
What
The
UploadCacheReadOnlyFlushtest enablesAPS5_NO_LEASE_MIRRORbefore creating its Vulkan test device.It called the POSIX-only
setenvunconditionally, so the test target did not compile with MSYS2 UCRT64 on Windows:Windows now uses
_putenv_s, following the existing platform-specific environment-variable handling in otherlibSceAgcDrivertests. Non-Windows builds continue to usesetenv.Tested
Windows 11 (VirtualBox VM), MSYS2 UCRT64, GCC 16.2.0, Release,
BUILD_TESTING=ON.agc_driver_upload_cache_read_only_flush_tests: failed to compile before the change and now builds successfully.agc_driver_upload_cache_read_only_flush: starts successfully and reportsSkippedbecause the required runtime capability is unavailable in this environment.cmake --build build-tests -j 3: passed with exit code 0.git diff --check: passed.tools/pr_overlap.py --branch: no overlap with 1,764 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)Pull request closed