]> www.infradead.org Git - nvme.git/commit
selftest: af_unix: Add msg_oob.c.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Tue, 25 Jun 2024 01:36:36 +0000 (18:36 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 27 Jun 2024 10:05:00 +0000 (12:05 +0200)
commitd098d77232c375cb2cded4a7099f0a763016ee0d
tree6fa3543f08a17628392053b3ed6d9f03a5aec98a
parent7d139181a8912d8bf0ede4f38d37688449b9af23
selftest: af_unix: Add msg_oob.c.

AF_UNIX's MSG_OOB functionality lacked thorough testing, and we found
some bizarre behaviour.

The new selftest validates every MSG_OOB operation against TCP as a
reference implementation.

This patch adds only a few tests with basic send() and recv() that
do not fail.

The following patches will add more test cases for SO_OOBINLINE, SIGURG,
EPOLLPRI, and SIOCATMARK.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/net/af_unix/Makefile
tools/testing/selftests/net/af_unix/msg_oob.c [new file with mode: 0644]