dbus/test/internals
Simon McVittie 7db891482f sysdeps test: Wait for spawned process to exit
On Windows, the "out" parameter for the process handle isn't set
unless we specify G_SPAWN_FLAGS_DO_NOT_REAP_CHILD. That means we
can't terminate it, and the child process is leaked. When running the
test individually, the leaked process is harmless apart from its
resource cost, but when running under CTest, it holds a file descriptor
open (or something) which causes CTest to not exit.

If we *do* specify G_SPAWN_FLAGS_DO_NOT_REAP_CHILD, we become
responsible for "reaping" the child process by waiting for its exit
status, which is an OS-specific action.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Resolves: https://gitlab.freedesktop.org/dbus/dbus/issues/238
2018-12-05 15:30:47 +01:00
..
assertions.c Add a test for assertions 2018-11-20 12:58:17 +00:00
desktop-file.c desktop-file test: Don't leak errors 2018-11-19 11:38:11 +00:00
printf.c tests: Call dbus_shutdown() 2018-08-02 17:14:39 +01:00
refs.c tests: Detach most connections from main loop before closing 2018-08-02 17:16:43 +01:00
server-oom.c tests: Call dbus_shutdown() 2018-08-02 17:14:39 +01:00
sysdeps.c sysdeps test: Wait for spawned process to exit 2018-12-05 15:30:47 +01:00
syslog.c syslog test: Don't assert that we see plain LF newlines 2018-12-05 15:27:43 +01:00
variant.c tests: Call dbus_shutdown() 2018-08-02 17:14:39 +01:00