test(libc): register the macOS write watch fault tests once #13220
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13220"
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 Gonic0 on 2026-10-30T06:50:00Z.
What
core/libs/tests/write_watch/CMakeLists.txtregisters theexecute-faultandread-faultwrite watch tests twice: #12117 (eb20686c42) and #12435 (1f1da4b0ff) each added the sameforeach(mode execute-fault read-fault)block, and both are onmain. The directory is added only on macOS (if(APPLE)incore/libs/CMakeLists.txt), so on macOS with tests enabled CMake stops while configuring:and the same for
write_watch_read-fault, which also blocks every build in that tree. This removes the second block. Linux and Windows do not add the directory and are unaffected.Tested
Apple M5 Pro, macOS 27.2, x86-64 Release under Rosetta 2.
mainalone does not build on macOS; I configured and built in a tree with the open macOS port PRs merged with today'smain, where the file is identical to this branch's.BUILD_TESTING=ONfails with the error above.write_watch_testsandwrite_watch_backing_testsbuild, andctest -R '^write_watch_'passes 18 of 18, withwrite_watch_execute-faultandwrite_watch_read-faultlisted once each.Checklist
main; no other open PR implements the same functionsNotImplemented_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)main🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by imellag on 2026-10-30T21:26:46Z.
Review: APPROVED
Confirmed on a second Mac. Apple M4 Pro, macOS 27.2, Apple clang 21.0.0, x86-64 Release.
main21a556f567still registers theforeach(mode execute-fault read-fault)block twice, and this morning a configure withBUILD_TESTING=ONonmain98ddd9c179stopped with the sameadd_test given test NAME "write_watch_execute-fault" which already existserror. With heade9f09f54fain the tree, it configures and builds. The tree is our macOS support branchsupport/macos-boot-1030c(05bd71a66b):main21a556f567+ the open macOS PRs, this one included.ctest -R '^write_watch'passes 18 of 18, andwrite_watch_execute-faultandwrite_watch_read-faulteach run once.The change only drops the duplicate block, which is identical to the one kept above it.
AI-assisted: yes