Skip to contentSkip to conversation

cr_tests: epoll: Add cycle in epoll sets

PATCH In review Matt Helsley 1 participant 1 message Oct 12, 2009

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index c94f5f5..84aec49 100644
@@ -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
index 6f64ee8..16ed76c 100755
@@ -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