mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-27 06:59:51 -05:00
tests: support testing fd inheritance over exec
Add facility for testing how (many) file descriptors survive an exec. This allows implementing O_CLOEXEC tests. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
parent
7c0aa1a4a3
commit
da6b1a8e47
5 changed files with 124 additions and 4 deletions
|
|
@ -1,7 +1,4 @@
|
|||
TESTS = $(check_PROGRAMS)
|
||||
|
||||
|
||||
check_PROGRAMS = \
|
||||
my_check_programs = \
|
||||
sanity-test \
|
||||
array-test \
|
||||
map-test \
|
||||
|
|
@ -10,6 +7,12 @@ check_PROGRAMS = \
|
|||
event-loop-test \
|
||||
client-test
|
||||
|
||||
TESTS = $(my_check_programs)
|
||||
|
||||
check_PROGRAMS = \
|
||||
$(my_check_programs) \
|
||||
exec-fd-leak-checker
|
||||
|
||||
test_runner_src = test-runner.c test-runner.h test-helpers.c
|
||||
|
||||
sanity_test_SOURCES = sanity-test.c $(test_runner_src)
|
||||
|
|
@ -25,3 +28,8 @@ LDADD = $(top_builddir)/src/libwayland-util.la \
|
|||
$(top_builddir)/src/libwayland-server.la \
|
||||
-lrt -ldl $(FFI_LIBS)
|
||||
|
||||
exec_fd_leak_checker_SOURCES = \
|
||||
exec-fd-leak-checker.c \
|
||||
test-runner.h \
|
||||
test-helpers.c
|
||||
exec_fd_leak_checker_LDADD =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue