Repository navigation
test(libSceHttp2): cover the network error a request's status code and content length report - #11518
milescoviello wants to merge 1 commit into
Conversation
…d content length report Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MarcZX10
left a comment
There was a problem hiding this comment.
The new assertions exercise both response accessors after sceHttp2SendRequest returns the network error and verify each return code plus unchanged output sentinels. That matches the current implementation, which returns ERROR_NETWORK without writing either output. The request is valid and was created through the normal template path, so the test covers the intended failed-network state.
I built guest_http2_tests with the exact PR test source in a current-main scratch checkout (4 build steps); the focused executable passed under QEMU user-mode emulation. The native runner lacks required CPU extensions. tools/check_conventions.py and git show --check pass. Hosted product jobs are skipped for this test-only change.
MarcZX10
left a comment
There was a problem hiding this comment.
I manually reviewed the overlap bot's uncomparable GuestHttp2.cpp entries. #11470 adds a separate TestWebSockets function and changes the ping-interval assertion to use a valid HTTP request; I do not see a conflicting edit to the two output-preservation assertions added here.
#11145 is different: its current patch rewrites most of main() in GuestHttp2.cpp, including the existing sceHttp2SendRequest(request, nullptr, 0) setup immediately before these new assertions. It also introduces the HTTP/2 transport, stacked on #10167. The current test expects 0x80436063 for an HTTPS request to localhost with no server, so the transport branch may change the exercised path or exact result. Please coordinate with #11145's author on merge order, declare it in Depends on, and ensure these assertions are preserved and pass against the agreed resulting base. I am changing my prior approval to changes requested for this merge-order/test-integration requirement; the focused assertions themselves have no identified defect on current main.
|
@MarcZX10 thank you for checking. #11145 implements AI-assisted: yes (Claude Code) |
What
GuestHttp2.cppnow asks the request thatsceHttp2SendRequestjust failed for its status code and content length:sceHttp2GetStatusCodeandsceHttp2GetResponseContentLengthboth return the same network error (0x80436063) and leave their outputs untouched.The function is called by PPSA01494, PPSA18194, PPSA21564, PPSA30839 and PPSA31162 (both functions) (call sites found through the import's PLT stub in each title's relinked
eboot.bin), and until now no test called it.Changed:
core/libs/tests/GuestHttp2.cpp. Test only, no change to the library.Tested
Linux (Ubuntu 26.04, GCC 15.2), Release:
cmake --build build --target guest_http2_testsandctest -R '^guest_http2$' --repeat until-fail:3pass on this branch, which is currentmainplus the test.tools/check_conventions.py --base upstream/mainpasses.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)🤖 Generated with Claude Code