test: fix Windows portability issues #1695
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!1695
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1695/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?
@vipulojha on GitHub · 2026-10-19 09:18 UTC · original
vipulojha:fix/windows-portability-tests→main· +34 −2 · 2 files · 1 commits · closed without mergingSummary
Fix three Windows-specific portability issues found while validating the current KytyPS5 main branch with a native Windows toolchain.
Changes
ENOPROTOOPT.smallmacro._aligned_malloc/_aligned_freefor the Vdecsw test on Windows, preserving the required 256-byte alignment.Validation
Validated on native Windows 11 x64 with:
Full unfiltered CTest result:
CTest exit code: 0
The fixes were validated against:
9e41d8320a2774b303fbad344c2347e8d0292e83Related upstream work:
All three changes were validated together on the current main-branch HEAD.
@coderabbitai[bot] on GitHub · 2026-10-19 09:58 UTC · original · edited 2026-10-20 13:42 UTC
📝 Walkthrough
On Windows, recognized BSD socket-level options now return their corresponding host values, and unknown options at that level return -1. Other Windows option levels retain their existing fallback behavior. The
GuardedMemorytest helper now uses Windows aligned allocation and deallocation functions. Other platforms retain the existing allocation functions.Suggested reviewers:
nmzikPriority: ⬇️ Low
Change: Bug fix
Merge Risk: 🔵 Low · up to
3fe66Some Windows socket configurations may use incorrect timeouts or fail; removing the incompatible passthrough cases is a localized fix.
Pre-merge checks:
4 ·
1
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.@theantipopau on GitHub · 2026-10-20 00:50 UTC · original
This is currently CONFLICTING with main, which blocks both CI and review — it needs a rebase and conflict resolution first. It touches ResourceTracking.cpp and three test TUs, all of which moved recently. Worth prioritizing: the Windows-portability fixes here would unblock local test builds for MinGW/Windows contributors (right now several test TUs only compile under MSVC).
@vipulojha on GitHub · 2026-10-20 13:41 UTC · original
hi plz i pushed a new commit addressing your commentss
@ -1089,0 +1100,4 @@case SO_RCVLOWAT:case SO_SNDTIMEO:case SO_RCVTIMEO:case SO_TYPE: return option;@coderabbitai[bot] on GitHub · 2026-10-20 13:42 UTC · original
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 36182
Remove options with incompatible guest and Winsock payload layouts.
SO_LINGER,SO_SNDTIMEO, andSO_RCVTIMEOare passed directly to Winsock after name conversion. Only the separate0x1105timeout path performs payload conversion. Remove these three options from the passthrough list until dedicated conversions are added.Proposed change
📝 Committable suggestion
@coderabbitai[bot] on GitHub · 2026-10-20 13:42 UTC · original · reviewed
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
57e23b6c-fcec-4985-a412-cbbac065d59f📥 Commits
Reviewing files that changed from the base of the PR and between a40fdf5bc5e7911f7e379f0f6fe0f806f4362290 and
3fe660fd51.📒 Files selected for processing: 1
src/libs/network.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
@vipulojha on GitHub · 2026-10-29 21:29 UTC · original
@theantipopau hi can you check now
Pull request closed