diff options
| author | thorpej <thorpej@NetBSD.org> | 2021-10-02 17:32:55 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2021-10-02 17:32:55 +0000 |
| commit | ef1fcd50142c49b7a8060f98c250b38510a0ed50 (patch) | |
| tree | 2c0f585be6f46ab8d498a079d8128041c639f2af /tests/kernel/kqueue/write | |
| parent | 584c92ccd773a3509731e64d8ee6d17cb553215d (diff) | |
- Strenghen the poll(2) fifo_inout test to ensure that once the reader
has read enough that exactly PIPE_BUF space is available that the FIFO
becomes writable again.
- When creating a FIFO, ensure that the receive low water mark is 1
(a FIFO must be readable when at least 1 byte is available); this
was already the case implicitly, but this makes it explicit.
- Similarly, set the send low water mark to PIPE_BUF to ensure that
the pipe is writable when at least PIPE_BUF bytes of space are available
in the send buffer. Without this change, the strengthened test case
above does not pass (the default send low water mark is larger than
PIPE_BUF; see soreserve()).
- Make the same low water mark changes to the PIPE_SOCKETPAIR case.
Diffstat (limited to 'tests/kernel/kqueue/write')
0 files changed, 0 insertions, 0 deletions
