wayland/tests
Pekka Paalanen 35d5053c62 os: wrap recvmsg(MSG_CMSG_CLOEXEC)
Some system C libraries do not have MSG_CMSG_CLOEXEC. This flag would
automatically set O_CLOEXEC flag on any received file descriptors.

Provide a fallback that does it manually. If setting CLOEXEC fails, the
file descriptor is closed immediately, which will lead to failures but
avoid leaks. However, setting CLOEXEC is not really expected to fail
occasionally.

Add tests for the wrapper. The setup is copied from connection-test.c.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-04-25 09:37:42 +03:00
..
.gitignore tests: add .gitignore 2012-04-20 16:28:15 +03:00
array-test.c tests: Fix signedness warnings 2012-04-13 10:11:11 -04:00
client-test.c server: Add client destroy signal 2012-04-13 09:53:15 -04:00
connection-test.c tests: Test invoking closures built with wl_closure_vmarshal() 2012-04-22 14:17:27 -04:00
event-loop-test.c tests: plug fd leaks in free_source_with_data 2012-04-20 14:58:31 +03:00
exec-fd-leak-checker.c tests: support testing fd inheritance over exec 2012-04-20 15:06:27 +03:00
list-test.c tests: Fix signedness warnings 2012-04-13 10:11:11 -04:00
Makefile.am connection: Move closure object out of wl_connection 2012-04-22 13:49:35 -04:00
map-test.c Add simple memory leak check to all tests. 2012-03-24 14:37:42 -04:00
os-wrappers-test.c os: wrap recvmsg(MSG_CMSG_CLOEXEC) 2012-04-25 09:37:42 +03:00
sanity-test.c tests: silence warnings from pipe() 2012-04-25 09:32:58 +03:00
test-helpers.c tests: support testing fd inheritance over exec 2012-04-20 15:06:27 +03:00
test-runner.c tests: detect fd leaks 2012-04-20 14:58:31 +03:00
test-runner.h tests: support testing fd inheritance over exec 2012-04-20 15:06:27 +03:00