fix(savedata): report memory metadata write failures #312
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/312"
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 RomainROCH on 2026-10-02T04:08:52Z.
What
Return SAVE_DATA_ERROR_INTERNAL when setSaveDataMemory2 cannot write the metadata sidecar, instead of reporting success. The regression blocks creation of the temporary sidecar, checks the error and preservation of previous metadata, then verifies cleanup, a successful retry and a call without metadata.
Updated onto main
7d40a57, retaining the memory-growth and replacement regression tests. The metadata fixture now checks that the replacement helper removes the temporary path after a write failure.Tested
1a55adfee2.libstarget on both platforms; three repetitions for passing tests). Linux GCC 13.3.0: 124 passed, 2 skipped, 0 failed out of 126 tests. Windows WinLibs GCC 15.2.0: 116 passed, 11 skipped, 0 failed out of 127 tests.libspassed; CTest had 123 passed, 2 skipped and 1 failed (agc_driver_vopc_compare: thread 1, compare 39, received 0 instead of 1). All six save-data tests passed. The AGC source and workflow are unchanged by this PR; the same commit passed on the fork. The cause of this non-reproduced GPU failure is not established. The upstream Linux check remains failed and needs a maintainer rerun; the fork result does not replace that status.Checklist
main; no other open PR implements the same functions