Fix macOS aggregate test build #536
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!536
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/536/head"
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?
@SaifMalik0162 on GitHub · 2026-09-09 07:35 UTC · original
SaifMalik0162:macos-aggregate-tests→main· +152 −2 · 4 files · 4 commits · merged 2026-09-28 21:43 UTCFixed the macOS build for the test suite. The page manager and memory tracker tests were relying on Linux-only behaviour so I added macOS support without changing the existing Linux or Windows code. I also fixed a separate compiler issue that was preventing the full test target from building.
I tested everything with a x86_64 Release build under Rosetta. The tests, full test target, and launcher all passed successfully.
@coderabbitai[bot] on GitHub · 2026-09-28 20:42 UTC · original · edited 2026-09-28 21:08 UTC
Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
9438ca9b-b004-453c-9121-392ed3954e1a📥 Commits
Reviewing files that changed from the base of the PR and between
250b1ba498anda250cc18b0.📒 Files selected for processing (2)
tests/MemoryTrackerTests.cpptests/PageManagerTests.cpp🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 3 remain after this review.
📝 Walkthrough
Walkthrough
Apple test implementations now use Mach VM APIs for memory protection, allocation, deallocation, and protection changes. Apple death tests resolve the executable path with
_NSGetExecutablePath. The macOS build adds three test targets and selects two additional CTest filters. A compute test address initializer explicitly castsbasetouint64_t.Suggested reviewers:
nmzikPriority: ⬇️ Low
Change: Bug fix
Merge Risk: 🔵 Low · up to
a250cThe macOS workflow compiles the compute test suite but does not run it, leaving a bounded CI coverage gap. The change is mergeable with owner awareness of that gap.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.@coderabbitai[bot] on GitHub · 2026-09-28 20:43 UTC · original · reviewed
Actionable comments posted: 1
🧹 Nitpick comments (1)
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
1dd7abf6-3f77-47ab-a974-27f36e99165d📥 Commits
Reviewing files that changed from the base of the PR and between
4b0de1b672and250b1ba498.📒 Files selected for processing (4)
.github/workflows/build.ymltests/MemoryTrackerTests.cpptests/PageManagerTests.cpptests/ShaderRecompilerComputeTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.
@coderabbitai[bot] on GitHub · 2026-09-28 20:43 UTC · original · edited 2026-09-28 21:01 UTC
On
tests/MemoryTrackerTests.cppline 909 (outdated):🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Keep executable-path lookup failures from passing death tests.
Both children call
Checkwhen_NSGetExecutablePathfails, but both parents accept any child signal. If the path exceedsPATH_MAX, the lookup fails andCheckaborts before the death case runs. Apple dyld returns the required buffer size on this failure. (github.com)tests/MemoryTrackerTests.cpp#L908-L909: retry with the required buffer size; report any remaining setup failure with an exit status the parent rejects.tests/PageManagerTests.cpp#L606-L607: apply the same lookup and setup-failure handling.📍 Affects 2 files
tests/MemoryTrackerTests.cpp#L908-L909(this comment)tests/PageManagerTests.cpp#L606-L607✅ Addressed in commit
a250cc1