fix(tests): register readlink_remounts only on Linux #28905

Merged
oneandonlydean merged 1 commit from upstream-pr/28905 into main 2026-12-04 16:20:23 +00:00
oneandonlydean commented 2026-12-04 14:57:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-12-04T14:57:21Z.


Main's Windows job has been red at check_skips since #23786 (main Build 47336085636 on 9e683f51c2).

#23786 added guest_kernel_sys_paths_readlink_remounts and its _patched twin. The case needs Linux mount namespaces, so on Windows it always prints SKIP: mount namespaces are Linux only, and tools/check_skips.py --job windows rejects that reason. Our Windows main run (laptop) shows both tests as skipped.

This registers the case, and its SKIP_RETURN_CODE 77, only when CMAKE_SYSTEM_NAME is Linux. On Linux both tests are still registered with the same skip code (checked with ctest -N after a fresh configure). The other kernel sys-path cases are unchanged.

Summary by CodeRabbit

  • Tests
    • The readlink_remounts system-path test now runs only on Linux, where the required mount namespace support is available. Other test cases retain their existing skip behavior.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5648768861 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/28905). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-12-04T14:57:21Z. --- Main's Windows job has been red at check_skips since #23786 (main Build 47336085636 on 9e683f51c2). #23786 added `guest_kernel_sys_paths_readlink_remounts` and its `_patched` twin. The case needs Linux mount namespaces, so on Windows it always prints `SKIP: mount namespaces are Linux only`, and `tools/check_skips.py --job windows` rejects that reason. Our Windows main run (laptop) shows both tests as skipped. This registers the case, and its `SKIP_RETURN_CODE 77`, only when `CMAKE_SYSTEM_NAME` is Linux. On Linux both tests are still registered with the same skip code (checked with `ctest -N` after a fresh configure). The other kernel sys-path cases are unchanged. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Tests** * The `readlink_remounts` system-path test now runs only on Linux, where the required mount namespace support is available. Other test cases retain their existing skip behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
MarcZX10 commented 2026-12-04 16:00:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T16:00:38Z.

Review: APPROVED


Reviewed — looks good

The Linux-only registration matches the test’s mount-namespace dependency, and both test variants retain the skip return code on Linux.

What I ran

Reviewed head 9309b8484042b27c8077312cffb9884ba8b6ec59 using the pinned reader and prepared diff. No configure, build, or tests were run.

python3 repo_read.py cat core/libs/CMakeLists.txt 380 414
python3 repo_read.py cat core/libs/tests/GuestKernelSysPaths.cpp 235 285
python3 repo_read.py cat core/libs/tests/GuestKernelSysPaths.cpp 285 372

Results

Check Result Note
Changed CMake and test logic passed Registration is limited to Linux
Configure or test run not run No runtime verification

Negative control

Not run; no tests were run.

Findings

Blocking

None.

Non-blocking

None.

Sources

Not verified

No platform-specific configure or ctest -N was run. The prepared bundle says those checks were performed by the author; they were not independently verified. core/libs/CMakeLists.txt was reviewed at the changed hunk and surrounding lines; core/libs/tests/GuestKernelSysPaths.cpp was reviewed at the relevant test implementation. The manifest lists only core/libs/CMakeLists.txt as changed and reviewed; no files were excluded.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6192228002 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/28905#pullrequestreview-6192228002). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-12-04T16:00:38Z. **Review:** APPROVED --- # Reviewed — looks good The Linux-only registration matches the test’s mount-namespace dependency, and both test variants retain the skip return code on Linux. ## What I ran Reviewed head `9309b8484042b27c8077312cffb9884ba8b6ec59` using the pinned reader and prepared diff. No configure, build, or tests were run. ```text python3 repo_read.py cat core/libs/CMakeLists.txt 380 414 python3 repo_read.py cat core/libs/tests/GuestKernelSysPaths.cpp 235 285 python3 repo_read.py cat core/libs/tests/GuestKernelSysPaths.cpp 285 372 ``` ## Results | Check | Result | Note | |---|---|---| | Changed CMake and test logic | passed | Registration is limited to Linux | | Configure or test run | not run | No runtime verification | ## Negative control Not run; no tests were run. ## Findings ### Blocking None. ### Non-blocking None. ## Sources - [CMake test registration at the reviewed commit](https://github.com/boykopovar/AnyPS5/blob/9309b8484042b27c8077312cffb9884ba8b6ec59/core/libs/CMakeLists.txt#L389-L410) - [Test skips when Linux mount namespaces are unavailable](https://github.com/boykopovar/AnyPS5/blob/9309b8484042b27c8077312cffb9884ba8b6ec59/core/libs/tests/GuestKernelSysPaths.cpp#L259-L299) ## Not verified No platform-specific configure or `ctest -N` was run. The prepared bundle says those checks were performed by the author; they were not independently verified. `core/libs/CMakeLists.txt` was reviewed at the changed hunk and surrounding lines; `core/libs/tests/GuestKernelSysPaths.cpp` was reviewed at the relevant test implementation. The manifest lists only `core/libs/CMakeLists.txt` as changed and reviewed; no files were excluded. ## To get this to a good state Nothing is required.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!28905
No description provided.