From 61684ce98f8e01c2b0dce5f268db9494ae764e7a Mon Sep 17 00:00:00 2001 From: Josip Parlov Date: Fri, 9 Oct 2026 16:53:26 +0200 Subject: [PATCH] test(net): reset the closed peer with unread data so the send fails at once --- core/libs/tests/GuestSceNet.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/libs/tests/GuestSceNet.cpp b/core/libs/tests/GuestSceNet.cpp index 4432ef709..b21c92650 100644 --- a/core/libs/tests/GuestSceNet.cpp +++ b/core/libs/tests/GuestSceNet.cpp @@ -269,6 +269,9 @@ int main() { NetMsghdr reply_receive{reply_name.data(), 16, reply_in, 1, nullptr, 0, -1}; Require(sceNetRecvmsg(client, &reply_receive, 0) == sizeof(reply)); Require(std::strcmp(reply, reply_result) == 0 && reply_receive.flags == 0 && reply_receive.name_length == 0); + Require(sceNetSend(client, request, sizeof(request), 0) == sizeof(request)); + ready = {}; + Require(sceNetEpollWait(epoll, &ready, 1, 1000000) == 1 && (ready.events & 1) && ready.ident == static_cast(accepted)); Require(sceNetEpollDestroy(epoll) == 0); Require(sceNetSocketClose(accepted) == 0); bool send_failed = false;