fix(tests): set the upload cache test's environment with _putenv_s on Windows #19899
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19899"
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 Sankalp7317 on 2026-11-14T07:16:52Z.
What
UploadCacheReadOnlyFlush.cppcallssetenv, which MinGW does not declare, so the Windows build ofmainstops atagc_driver_upload_cache_read_only_flush_tests('setenv' was not declared in this scope). The test now setsAPS5_NO_LEASE_MIRRORwith_putenv_son Windows and keepssetenvelsewhere, asAddressPasses.cppalready does. No library code changes.Tested
Windows 11, WinLibs GCC 15.2.0, NVIDIA GeForce RTX 3050 (driver 610.88), Khronos validation layer 1.4.363.1. The full build now completes.
ctest --test-dir build -R "^agc_driver_upload_cache_read_only_flush$" -VwithANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validationandVK_LOADER_DEBUG=layerpasses in 4 of 4 runs; each log showsInsert instance layer "VK_LAYER_KHRONOS_validation", none containswas not found but was requested by env var VK_INSTANCE_LAYERS, and none contains aVUID-,UNASSIGNED-orSYNC-HAZARDmessage. There is nomainlog to compare: on Windowsmaindoes not compile this test, which is what this PR fixes.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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T10:01:12Z.
Review: APPROVED
Reviewed — looks good
The change uses the platform-specific environment setter already present in a neighboring execution test; source review is complete, but no build or test was run here.
What I ran
Reviewed head
4d4484d456456dfe044c4edf9eeae40356147bff. Readdescription.md,commits.md,manifest.json,diff.patch, and the full changedUploadCacheReadOnlyFlush.cpp; also read the corresponding platform conditional inAddressPasses.cpp. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The author reports a Windows build and four passing test runs; these were not independently verified.
files.jsonwas not available through the reader, so its exclusions were not confirmed. No other files were excluded according to the manifest, whose sole changed file was read.To get this to a good state
Nothing is required.