Repository navigation
test(libSceHttp): cover silent offline setters - #26336
oneandonlydean merged 1 commit into
Conversation
PrivacyOnion
left a comment
There was a problem hiding this comment.
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 7f22ba158a:
- Conventions:
tools/check_conventions.pypassed. - Build:
guest_http_options_testsbuilt cleanly. - CTest (
guest_http_options):1/1 Test #4065: guest_http_options ............... Passed 0.00 sec 100% tests passed, 0 tests failed out of 1 - Code reading:
- Verified sceHttpSetChunkedTransferEnabled and sceHttpsSetMinSslVersion behavior in CheckOfflineSettersBeforeInit (core/libs/tests/GuestHttpOptions.cpp:143-144) to confirm they return 0 before sceHttpInit
- Verified loop over handles {pattern, connection, request, UnknownId} in CheckUnobservedOptions (core/libs/tests/GuestHttpOptions.cpp:287-290) testing both 0, -1, 1, and uint32 max values
- Verified AGENTS.md compliance: test-only change adding regression coverage for documented silent stubs without comments, forbidden files, or special-cased game IDs
- Verified negative control and mechanical test passes as reported by CTest (1/1 guest_http_options passed cleanly)
Looks Good To Me
|
Works on Windows with WinLibs: the merge passes Existing runs: malekaifa ran Windows 11 with MSYS2 UCRT64 GCC 16.2, 1/1, with a negative control returning -1 from What this run adds.
Code.
Negative control and mutation. The PR adds tests for unchanged code, so main's implementation also passes them. Instead, each mutation is applied to the merge's Export.cpp, followed by a rebuild of the four targets.
The other three tests pass under every mutation. Nothing survived. Tests.
Host
AI-assisted: yes |
|
Manual overlap audit for the bot warning: #24528 and this PR share Exact head AI-assisted: yes |
What
Cover the two remaining documented libSceHttp silent option setters that had no regression assertions:
sceHttpSetChunkedTransferEnabledkeeps returning success for arbitrary object IDs and enable values, including beforesceHttpInit.sceHttpsSetMinSslVersionkeeps returning success for arbitrary object IDs and version values, including beforesceHttpInit.Both are documented silent stubs in
docs/dev/debt/libSceHttp.md; this PR only adds regression coverage and does not change runtime behavior.core/libs/tests/GuestHttpOptions.cppis also touched by #24528 and #26242, but neither implements these two functions. #24528 covers timeout/retry/size setter validation, while #26242 coverssceHttpAbortRequest; these assertions are semantically separate and can be rebased straightforwardly if either lands first.Tested
Windows 11, MSYS2 UCRT64 GCC 16.2, Ninja, Release, exact head
7f22ba158a741fe9bd5fe9e655e16cf672269922:cmake --build C:/b/http-silent-offline-setters-20261123 --target guest_http_options_tests --parallel 4— passed.ctest --test-dir C:/b/http-silent-offline-setters-20261123 -R '^guest_http_options$' --output-on-failure— 1/1 passed.sceHttpSetChunkedTransferEnabledto return-1;guest_http_optionsfailed as intended. Restored the runtime source, rebuilt, and the test passed 1/1 again.python -I tools/check_conventions.py --base HEAD^ --head HEAD— passed.git diff --check HEAD^ HEAD— clean.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