Commit graph

5 commits

Author SHA1 Message Date
Mark Johnston ac52fa1f1b sendfile tests: Fix an error check in tcp_socketpair()
Fixes:	c368d3f20f ("tests/sendfile: factor out tcp_socketpair()")
Differential Revision:	https://reviews.freebsd.org/D45598
2024-06-21 14:18:22 -04:00
Gleb Smirnoff 0c0146c309 tests/sendfile: test operation on unix/stream socket
Although there are already multiple tests in the tests collection
that utilize sendfile(2) support over unix/stream socket, they all
don't exercise the asynchronous part of the operation.  This test
framework, however, uses a trick to toggle true async operation and
guarantee that pr_ready method of unix/stream is also tested.

Reviewed by:		chs
Differential Revision:	https://reviews.freebsd.org/D45055
2024-05-03 07:45:07 -07:00
Gleb Smirnoff c368d3f20f tests/sendfile: factor out tcp_socketpair()
It creates a pair of connected TCP sockets for later testing.  No
functional change.

Reviewed by:		chs
Differential Revision:	https://reviews.freebsd.org/D45054
2024-05-03 07:45:06 -07:00
Warner Losh b3e7694832 Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
2023-08-16 11:54:16 -06:00
Chuck Silvers 3b41d99d76 add a few tests for sendfile.
Reviewed by:	markj
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D25431
2020-07-20 20:36:32 +00:00