tests: guest_filesystem's failure message reports the guest errno even when a host call failed #3178
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 reyani-dev on 2026-10-11T00:17:48Z.
GuestFilesystem.cpp'sCheck(behindRequire) printsFilesystem check failed at line N (guest errno E)for every failed check. When the failing expression is a host call, the guest errno is whatever an earlier guest call left behind, so the message points away from the cause. An example is theCreateSymbolicLinkWchecks at line 276 onmain59a8cbab.Concretely, on a Windows machine without the symlink privilege,
CreateSymbolicLinkWfailed withERROR_PRIVILEGE_NOT_HELD(1314), and the message read(guest errno 14). #3169 skips those link checks when the privilege is missing, but it doesn't change the message.Possible directions: print the guest errno only for checks on guest calls, or also print
GetLastError()/errnoon host-side checks. Other tests use the sameCheckpattern (GuestKernelSync,GuestDirectory, …), so a shared helper may fit better than one test at a time.Raised by @Dextroid17's review of #3169. AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T04:53:58Z.
Opened PR #3276 with the diagnostic update.
guest_filesystempasses locally on Linux Release (GCC 12.2), and the native error is captured before reading guesterrno.I could not compile the Windows-specific branch locally because MinGW is unavailable in this environment; the PR description records that limit.