test: cover blocking tty I/O on poll-ready files
PATCH 1/1 test: cover blocking tty I/O on poll-ready files
Exercise a packet-mode tty read with a competing reader, using normal and registered descriptors, and a write larger than the available tty buffer. Bound submission latency and release blocked I/O so a regression fails without leaving the test stuck.
Also check that blocking tty multishot reads complete once, while O_NONBLOCK tty reads retain multishot behavior.
Assisted-by LLM
Signed-off-by Tianyi Chen <[email protected]>
--- test/Makefile | 1 + test/rw-poll-ready.c | 290 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 291 insertions(+) create mode 100644 test/rw-poll-ready.c
test/Makefile +1 -0
@@ -246,6 +246,7 @@ test_srcs := \ ring-query.c \ rsrc_tags.c \ rw_merge_test.c \ + rw-poll-ready.c \ self.c \ recvsend_bundle.c \ recvsend_bundle-inc.c \
test/rw-poll-ready.c new file +290 -0
290 lines not on this page · raw message
Signature · 1 line
2.55.0