History log of /freebsd/tests/sys/kern/unix_stream.c (Results 1 – 8 of 8)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 83259da6 10-Jun-2025 Gleb Smirnoff <glebius@FreeBSD.org>

tests/unix_stream: peer's shutdown(SHUT_WR) must wake up any event mech


# 19e599c0 10-Jun-2025 Gleb Smirnoff <glebius@FreeBSD.org>

tests/unix_stream: refactor event mech tests

Provide a context that can be used both for writability and readability
checks. This collapses two check functions per mech into one. Provide a
possibil

tests/unix_stream: refactor event mech tests

Provide a context that can be used both for writability and readability
checks. This collapses two check functions per mech into one. Provide a
possibility to check advanced features of an event mech, e.g. returned
kev_flags for kevent(2).

Should be no functional change.

show more ...


Revision tags: release/14.3.0
# 6b90209a 31-May-2025 Kyle Evans <kevans@FreeBSD.org>

tests: ensure that unix/stream raises POLLIN after a shutdown(2)

This tests for the bug fixed in
6ac71c4a52348 ("unix/stream: fix poll on a peer shutdown(2)ed socket"),
where-in the remote side has

tests: ensure that unix/stream raises POLLIN after a shutdown(2)

This tests for the bug fixed in
6ac71c4a52348 ("unix/stream: fix poll on a peer shutdown(2)ed socket"),
where-in the remote side has shutdown writes on their side and the other
end fails to return from select(2)/poll(2) because we weren't surfacing
it as readable.

Reviewed by: adrian, kib
Differential Revision: https://reviews.freebsd.org/D50602

show more ...


# eafe5967 21-May-2025 Gleb Smirnoff <glebius@FreeBSD.org>

unix: fix EVFILT_WRITE when peer close(2)s and shutdown(2)s

For the close(2) case restore reporting the event with EV_EOF set. This
fixes bug 286692.

For the shutdown(2) case restore original beha

unix: fix EVFILT_WRITE when peer close(2)s and shutdown(2)s

For the close(2) case restore reporting the event with EV_EOF set. This
fixes bug 286692.

For the shutdown(2) case restore original behavior, but leave comment that
we may want to change that. The d15792780760 was not intended to bring in
functional API changes.

Provide tests for both cases.

PR: 286692
Fixes: d15792780760ef94647af9b377b5f0a80e1826bc

show more ...


# fe9bf4b9 30-Apr-2025 Gleb Smirnoff <glebius@FreeBSD.org>

tests/unix_stream: improve writable test

In addition with non-blocking checks on writability, add blocking once
with help of pthread(3).


Revision tags: release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4
# 1b2636e5 11-Feb-2025 Gleb Smirnoff <glebius@FreeBSD.org>

tests/unix_stream: fix signedness error

Fixes: bc7ee0b52a8dd613711c7225244aac954b41e534


# bc7ee0b5 10-Feb-2025 Gleb Smirnoff <glebius@FreeBSD.org>

tests/unix_stream: add test that checks a full socket isn't writable


Revision tags: release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0, release/13.4.0, release/14.1.0
# 6655bec4 14-Apr-2024 Gleb Smirnoff <glebius@FreeBSD.org>

tests/unix_stream: test that send(2) of zero bytes is successful

Put this simple test into an existing file. We don't have a designated
file for all unix/stream tests. There is extensive unix_seqp

tests/unix_stream: test that send(2) of zero bytes is successful

Put this simple test into an existing file. We don't have a designated
file for all unix/stream tests. There is extensive unix_seqpacket_test,
but (at least right now) unix/seqpacket is not a superset of unix/stream,
but a different implementation. We have one file that does one test for
unix/stream - unix_socketpair_test. So rename it to unix_stream and start
collecting all unix/stream tests in it.

show more ...