Skip to contentSkip to conversation

test: cover blocking tty I/O on poll-ready files

PATCH New Tianyi Chen 1 participant 1 message Sep 19 io_uring

lore
Share & tools
lore
#0 lore raw

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
---
 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
index 8b27681..3bf197d 100644
@@ -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