dbus/test
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
..
data Use separate bus configuration files for executing test cases with a temporary session bus 2018-10-18 20:06:43 +02:00
integration transient-services integration test: Create the right directory 2017-04-18 12:46:18 +01:00
internals sysdeps test: Wait for spawned process to exit 2018-12-05 15:30:47 +01:00
name-test Merge branch 'unpythonize' into 'master' 2018-12-05 14:09:00 +00:00
.gitignore Update .gitignore files 2015-02-03 15:40:01 +00:00
containers.c containers test: Wait a few more seconds for the socket to be deleted 2018-11-19 13:53:52 +00:00
corrupt.c tests: Detach most connections from main loop before closing 2018-08-02 17:16:43 +01:00
dbus-daemon-eavesdrop.c tests: Detach most connections from main loop before closing 2018-08-02 17:16:43 +01:00
dbus-daemon.c Merge branch 'unprivileged-container' into 'master' 2018-12-05 14:09:19 +00:00
dbus-test-runner Add support for installing most of the modular tests 2011-06-10 18:32:35 +01:00
fdpass.c tests: Detach most connections from main loop before closing 2018-08-02 17:16:43 +01:00
glib-tap-test.sh When running TAP tests, filter out trailing \r from Windows .exe 2015-10-29 05:50:27 +01:00
header-fields.c tests: Call dbus_shutdown() 2018-08-02 17:14:39 +01:00
loopback.c tests: Detach most connections from main loop before closing 2018-08-02 17:16:43 +01:00
Makefile.am Translate Python-based tests to C 2018-12-03 17:42:48 +00:00
manual-authz.c tests: reassure clang that oom() does in fact not return 2015-02-24 11:14:02 +00:00
manual-backtrace.c manual-backtrace: use proper prototypes, and make functions static 2015-11-17 15:32:43 +00:00
manual-dir-iter.c test: Add a missing OOM path in manual-dir-iter test 2017-02-14 17:45:08 +00:00
manual-paths.c Fix function declarations 2016-10-10 15:09:28 +01:00
manual-tcp.c Add manual tcp test case. 2015-01-30 09:33:40 +01:00
marshal.c test/marshal: Don't leak a message and its marshalled buffer 2018-08-02 17:16:14 +01:00
message.c tests: Call dbus_shutdown() 2018-08-02 17:14:39 +01:00
monitor.c tests: Detach most connections from main loop before closing 2018-08-02 17:16:43 +01:00
relay.c tests: Call dbus_shutdown() 2018-08-02 17:14:39 +01:00
sd-activation.c tests: Detach most connections from main loop before closing 2018-08-02 17:16:43 +01:00
shell-test.c tests: Call dbus_shutdown() 2018-08-02 17:14:39 +01:00
spawn-test.c tests: Call dbus_shutdown() 2018-08-02 17:14:39 +01:00
syntax.c tests: Call dbus_shutdown() 2018-08-02 17:14:39 +01:00
tap-test.sh.in Run most tests under the TAP driver, with a simple adaptor for non-TAP tests 2015-04-16 13:06:29 +01:00
test-apparmor-activation.sh Add an integration test for AppArmor mediating activation 2016-11-28 12:11:52 +00:00
test-dbus-daemon-fork.sh test-dbus-daemon-fork: exercise closed stdin, stdout, stderr 2016-08-12 18:21:36 +01:00
test-dbus-launch-eval.sh tests: Don't exercise GetMachineId() or autolaunch if no machine ID 2017-06-08 18:30:39 +01:00
test-dbus-launch-x11.sh tests: Don't exercise GetMachineId() or autolaunch if no machine ID 2017-06-08 18:30:39 +01:00
test-exit.c Include config.h as the first thing in every .c file 2013-02-22 13:08:27 +00:00
test-names.c tests: Call dbus_shutdown() 2018-08-02 17:14:39 +01:00
test-segfault.c _dbus_disable_crash_handling: Factor out from test-segfault 2018-11-20 12:58:17 +00:00
test-service.c test-service: Write diagnostics to stderr 2018-12-03 17:42:48 +00:00
test-shell-service.c test-utils: Separate failable and non-failable functions 2017-12-04 11:52:52 +00:00
test-sleep-forever.c fix warning, use Sleep, not _sleep on windows (cherry picked from commit ea36c743ad60a2dd5c6286571d1a475903519809) 2009-11-30 12:00:14 +01:00
test-utils-glib.c test_get_helper_executable: Add function 2018-10-31 16:56:36 +00:00
test-utils-glib.h test_get_helper_executable: Add function 2018-10-31 16:56:36 +00:00
test-utils.c test-utils: Separate failable and non-failable functions 2017-12-04 11:52:52 +00:00
test-utils.h Enable "unused result" warning for Visual Studio >= 2012 (MSVC 11.0) 2018-03-15 19:53:05 +00:00
thread-blocking.c tests: Call dbus_shutdown() 2018-08-02 17:14:39 +01:00
uid-permissions.c tests: Detach most connections from main loop before closing 2018-08-02 17:16:43 +01:00