]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vsock/test: check also expected errno on sigpipe test
authorStefano Garzarella <sgarzare@redhat.com>
Wed, 14 May 2025 14:19:27 +0000 (16:19 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 17 May 2025 01:01:32 +0000 (18:01 -0700)
commit3c6abbe85bccd8efb5d9147a022b1d4012cb1809
tree0ca72c6f0749fdf9076dc0b04825f975ce6f67ce
parent135a8a4d25a2937b2727e3857471f305d78496da
vsock/test: check also expected errno on sigpipe test

In the sigpipe test, we expect send() to fail, but we do not check if
send() fails with the errno we expect (EPIPE).

Add this check and repeat the send() in case of EINTR as we do in other
tests.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://patch.msgid.link/20250514141927.159456-4-sgarzare@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/vsock/vsock_test.c