cr_tests: epoll: Add cycle in epoll sets
PATCH 6/7 cr_tests: epoll: Add cycle in epoll sets
This test creates a cycle of epoll sets and uses a pipe to trigger events which we can then verify. This testcase is important because epoll set cycles could trigger bugs in the way epoll handles recursive sets.
Signed-off-by Matt Helsley <matthltc-r/[email protected]>
--- epoll/Makefile | 2 +- epoll/cycle.c | 328 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ epoll/run.sh | 2 +- 3 files changed, 330 insertions(+), 2 deletions(-) create mode 100644 epoll/cycle.c
epoll/Makefile +1 -1
@@ -3,7 +3,7 @@ LIBS := ../libcrtest/libcrtest.a ./libeptest.a CFLAGS := -Wall $(ARCHOPTS) -I../ -I../libcrtest -PROGS=empty pipe sk10k +PROGS=empty pipe sk10k cycle .PHONY: all clean
epoll/cycle.c new file +328 -0
328 lines not on this page · raw message
epoll/run.sh +1 -1
@@ -20,7 +20,7 @@ fi ) | grep -E '^[[:space:]]*CONFIG_EPOLL=y' > /dev/null 2>&1 exit 1 } -TESTS=( empty pipe sk10k ) +TESTS=( empty pipe sk10k cycle ) #make ${TESTS[@]} # mount -t cgroup foo /cg
Signature · 1 line
1.5.6.3