tests: link KernelFileSystemTests on Windows #712
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!712
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/712/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?
@diegoalejandrogomez on GitHub · 2026-09-19 03:19 UTC · original
diegoalejandrogomez:fix/kernelFileSystemTest_buildWin→main· +3 −0 · 1 files · 1 commits · closed without mergingSummary
kernel_file_system_testsdoes not link on Windows:The test includes
SDL.h, which pulls inSDL_main.h. On Windows that header definesSDL_MAIN_AVAILABLEand renamesmaintoSDL_main, expecting theSDL2mainlibrary to provide the real entry point. The test target only links the static SDL2 library, so nomainexists. The emulator itself never hits this becausesrc/main.cppdoes not includeSDL.h.This defines
SDL_MAIN_HANDLEDbefore the include on Windows, which is the opt-out documented inSDL_main.hfor programs that own theirmain.SDL_SetMainReadyis not needed: withSDL_MAIN_AVAILABLE(as opposed toSDL_MAIN_NEEDED) the ready flag inSDL.cdefaults to true.Test plan
kernel_file_system_testsbuilds and links.Notes
kernel_file_systemis not in the ctest filter for any platform inbuild.yml, which is why this went unnoticed. Adding it to the Windows job would keep this from regressing; left out of this PR as a CI policy call.guest PEEK and WAITALL preserve the wake bytes. That is a separate pre-existing Winsock issue (recvrejectsMSG_PEEK | MSG_WAITALLwithWSAEOPNOTSUPP); fix to follow in its own PR.@coderabbitai[bot] on GitHub · 2026-09-19 03:21 UTC · original
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:
0fba9304-d9ad-4cb4-9390-84c098859367📥 Commits
Reviewing files that changed from the base of the PR and between
f100f785daandc8f1593359.📒 Files selected for processing (1)
tests/KernelFileSystemTests.cppIncluded review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
Walkthrough
The test source defines
SDL_MAIN_HANDLEDon Windows before including SDL headers. This prevents SDL from replacing the test program’smainentry point.Suggested reviewers:
nmzikPriority: ⬇️ Low
Change: Bug fix
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Comment
@coderabbitai helpto get the list of available commands.@diegoalejandrogomez on GitHub · 2026-09-19 19:30 UTC · original
This was already solved by this #565
Closing this pr since is duplicated
Pull request closed