wayland/tests
Pekka Paalanen 7134a439c1 os: wrap socket(SOCK_CLOEXEC) calls
Some system C libraries do not offer SOCK_CLOEXEC flag.

Add a new header for OS compatibility wrappers. Wrap socket() calls into
wl_os_socket_cloexec() which makes sure the O_CLOEXEC flag gets set on
the file descriptor.

On systems having SOCK_CLOEXEC this uses the old socket() call, and
falls back if it fails due to the flag (kernel not supporting it).

wayland-os.h is private and not exported.

Add close-on-exec tests for both normal and forced fallback paths.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-04-20 16:26:37 +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: Fix signedness warnings 2012-04-13 10:11:11 -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 os: wrap socket(SOCK_CLOEXEC) calls 2012-04-20 16:26:37 +03: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 socket(SOCK_CLOEXEC) calls 2012-04-20 16:26:37 +03:00
sanity-test.c tests: support testing fd inheritance over exec 2012-04-20 15:06:27 +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