Add a targeted test for OOM during _dbus_server_new_for_tcp_socket()
authorSimon McVittie <smcv@collabora.com>
Tue, 21 Nov 2017 13:36:10 +0000 (13:36 +0000)
committerSimon McVittie <smcv@collabora.com>
Fri, 24 Nov 2017 13:48:15 +0000 (13:48 +0000)
commit3e245e15d62acd772b56efbd8335920c067e41f4
treeb8dd583e4c10542e352184bf4a4eee840cd662e4
parentc393aefb34dd466265a33fe5c431b747d7a44b86
Add a targeted test for OOM during _dbus_server_new_for_tcp_socket()

This also covers _dbus_server_new_for_socket(), which is one of the
worse places in terms of complexity of the error-unwinding path
(3 labels).

Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89104
(cherry picked from commit ac6c4d384d83c2e39a4f4156ef11cadcfbfa44f6)
cmake/test/CMakeLists.txt
test/Makefile.am
test/internals/server-oom.c [new file with mode: 0644]