mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/3] vsock/test: improve sigpipe test reliability
@ 2025-05-14 14:19 Stefano Garzarella
  2025-05-14 14:19 ` [PATCH net-next v2 1/3] vsock/test: add timeout_usleep() to allow sleeping in timeout sections Stefano Garzarella
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Stefano Garzarella @ 2025-05-14 14:19 UTC (permalink / raw)
  To: netdev; +Cc: virtualization, Stefano Garzarella, linux-kernel

Running the tests continuously I noticed that sometimes the sigpipe
test would fail due to a race between the control message of the test
and the vsock transport messages.

While I was at it I also improved the test by checking the errno we
expect.

Changelog:
v2:
- added a patch to provide timeout_usleep() and avoid issues with signals
  in timeout section
- add little sleep to avoid flooding the other peer [Paolo]
- fixed loop exit condition [Paolo]

v1: https://lore.kernel.org/netdev/20250508142005.135857-1-sgarzare@redhat.com/

Stefano Garzarella (3):
  vsock/test: add timeout_usleep() to allow sleeping in timeout sections
  vsock/test: retry send() to avoid occasional failure in sigpipe test
  vsock/test: check also expected errno on sigpipe test

 tools/testing/vsock/timeout.h    |  1 +
 tools/testing/vsock/timeout.c    | 18 +++++++++++++
 tools/testing/vsock/vsock_test.c | 46 ++++++++++++++++++++++++++------
 3 files changed, 57 insertions(+), 8 deletions(-)

-- 
2.49.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-05-17  1:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-14 14:19 [PATCH net-next v2 0/3] vsock/test: improve sigpipe test reliability Stefano Garzarella
2025-05-14 14:19 ` [PATCH net-next v2 1/3] vsock/test: add timeout_usleep() to allow sleeping in timeout sections Stefano Garzarella
2025-05-14 14:19 ` [PATCH net-next v2 2/3] vsock/test: retry send() to avoid occasional failure in sigpipe test Stefano Garzarella
2025-05-14 14:19 ` [PATCH net-next v2 3/3] vsock/test: check also expected errno on " Stefano Garzarella
2025-05-17  1:10 ` [PATCH net-next v2 0/3] vsock/test: improve sigpipe test reliability patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®