summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-12-06 11:22:24 -0600
committerDaniel Stone <daniels@collabora.com>2018-01-09 15:20:00 +0000
commitf74c9b98db49ce16e037c3012590c4a24a4fc32e (patch)
tree5e7afcd3ea20b6ee0d12d27405fbd245c2568d40 /Makefile.am
parentclient: Consume file descriptors destined for zombie proxies (diff)
downloadwayland-f74c9b98db49ce16e037c3012590c4a24a4fc32e.tar
wayland-f74c9b98db49ce16e037c3012590c4a24a4fc32e.tar.gz
wayland-f74c9b98db49ce16e037c3012590c4a24a4fc32e.tar.bz2
wayland-f74c9b98db49ce16e037c3012590c4a24a4fc32e.tar.lz
wayland-f74c9b98db49ce16e037c3012590c4a24a4fc32e.tar.xz
wayland-f74c9b98db49ce16e037c3012590c4a24a4fc32e.tar.zst
wayland-f74c9b98db49ce16e037c3012590c4a24a4fc32e.zip
tests: Add a test for fd leaks on zombie objects
Until recently, if a client destroying a resource raced with the server generating an event on that resource that delivered a file descriptor, we would leak the fd. This tests for a leaked fd from that race condition. Reviewed-by: Daniel Stone <daniels@collabora.com> Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 0eedb10..bceca2a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -114,7 +114,8 @@ protocol/%-client-protocol-core.h : $(top_srcdir)/protocol/%.xml
BUILT_SOURCES = \
$(nodist_libwayland_server_la_SOURCES) \
$(nodist_libwayland_client_la_SOURCES) \
- $(nodist_headers_test_SOURCES)
+ $(nodist_headers_test_SOURCES) \
+ $(nodist_display_test_SOURCES)
CLEANFILES = $(BUILT_SOURCES) doc/doxygen/doxygen_sqlite3.db
DISTCLEANFILES = src/wayland-version.h
@@ -206,6 +207,10 @@ client_test_SOURCES = tests/client-test.c
client_test_LDADD = libtest-runner.la
display_test_SOURCES = tests/display-test.c
display_test_LDADD = libtest-runner.la
+nodist_display_test_SOURCES = \
+ protocol/tests-server-protocol.h \
+ protocol/tests-client-protocol.h \
+ protocol/tests-protocol.c
connection_test_SOURCES = tests/connection-test.c
connection_test_LDADD = libtest-runner.la
event_loop_test_SOURCES = tests/event-loop-test.c