Skip to content

test(kyty): put the unpatched libs on PATH for two replay tests on Windows - #323

Closed
Celegans12 wants to merge 1 commit into
simnJS:AnyKytyfrom
Celegans12:fix/replay-test-path
Closed

Celegans12 wants to merge 1 commit into
simnJS:AnyKytyfrom
Celegans12:fix/replay-test-path

Conversation

@Celegans12

@Celegans12 Celegans12 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

What

This fixes #322. On Windows, kyty_shim_bda_load_forms and kyty_shim_wave_split_written_reads were the only replay tests that didn't get the libSceAgcDriver output directory (core/libs/libs/unpatched) on PATH, so the agc_frame_replay child they start couldn't load libc.prx, libkernel.prx and libSceAgcDriver.prx. On a desktop session that leaves the child stuck on the loader's "System Error" box until ctest kills it at 120 s. Without a desktop the child exits with 0xC0000135, and the tests fail, or skip when ANYPS5_REQUIRE_VULKAN isn't set.

kyty_shim_bda_load_forms now sits in the existing WIN32 ENVIRONMENT_MODIFICATION list next to the cross-queue tests. kyty_shim_wave_split_written_reads is registered after that block (and outside its NOT ANYPS5_KYTY_DLL guard), so it gets its own if(WIN32) with the same PATH prepend, the way kyty_shim_wave64_cross_lane and kyty_shim_depth_target_alias do it.

Tested

Windows 11 Pro (10.0.26300), NVIDIA GeForce RTX 3080 Laptop GPU, driver 621.14, plain Release build with -DBUILD_TESTING=ON on AnyKyty 007a98c (WinLibs GCC 15.2.0, clang 21.1.8 for Kyty). The tests ran through ctest with ANYPS5_REQUIRE_VULKAN=1, and the loader limited to the NVIDIA driver; the replay log names the RTX 3080.

Before the change, both tests fail: ctest gives them only the MinGW bin dir on PATH and the replay child exits with 0xC0000135. From an interactive desktop it's the 120 s timeout from #322 instead. With the change, ctest -V shows the unpatched dir prepended, and both pass 3/3: kyty_shim_bda_load_forms in 0.47-0.59 s, kyty_shim_wave_split_written_reads in 0.98-1.00 s. check_conventions passes.

Not tested: Linux (the change is WIN32 only), the DLL build.

Checklist

…ndows

kyty_shim_bda_load_forms and kyty_shim_wave_split_written_reads start
agc_frame_replay, which imports libc.prx, libkernel.prx and
libSceAgcDriver.prx. Unlike the other replay tests, neither of them got
the libSceAgcDriver output directory on PATH on Windows, so the child
could not load its prx files. On a desktop session the loader then
opened a modal "System Error" box and ctest killed the test at 120 s.

Add kyty_shim_bda_load_forms to the existing WIN32 PATH list, and give
kyty_shim_wave_split_written_reads, which is registered after that
block, the same ENVIRONMENT_MODIFICATION as kyty_shim_wave64_cross_lane.
@simnJS

simnJS commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Merged into AnyKyty (your commit, cherry-picked onto the current head, same diff; all checks were green). Thanks @Celegans12, good catch on the two replay tests that never got the PATH prepend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tests: kyty_shim_bda_load_forms and kyty_shim_wave_split_written_reads time out on Windows because agc_frame_replay can't find its prx DLLs

2 participants