build(tests): provide setenv for the AGC execution tests on Windows #22373
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/22373"
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 Ethan-Hainline on 2026-11-17T13:17:27Z.
What
A full
BUILD_TESTING=ONbuild on Windows stops on an unguarded POSIXsetenvin an AGC execution test (#22358). That is not one file: 72 sources undertests/executioncallsetenv/unsetenv, but the CI Windows job buildsExecutionTestNotBuilt.cppstubs for every test it does not select, so it never compiles most of them. The two open per-file fixes (#19899, #22366) make the reported file compile; the next full build would stop on the next source.This adds a Windows-only test shim and force-includes it into every
agc_driver_*execution test on MinGW:tests/execution/TestEnvironment.hppmapssetenv(name, value, overwrite)to_putenv_s(name, value)andunsetenv(name)to_putenv_s(name, "").-include .../TestEnvironment.hppforWIN32with GCC.The per-file
_putenv_schanges remain correct and compatible; the shim simply makes the other 71 sources build too.Tested
UploadCacheReadOnlyFlush.cpponmainfails with'setenv' was not declared in this scope; the same command with-include TestEnvironment.hppproduces the object (20,701 bytes).agc_driver_upload_cache_read_only_flush_testscontains the forced include.Missing entry point), after the compile step this change covers.python tools/check_conventions.py --base upstream/main --head HEADpasses.Checklist
main; no other open PR implements the same changeNotImplemented_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)