dbus/bus
Simon McVittie e9f0378bbf Merge tests' cmake and autotools bus configuration
In Unix, the tests listened on both debug-pipe (which is a socketpair,
or a TCP emulation of socketpair on Windows) and a Unix socket.

In the Windows port, the tests were hard-coded to listen on a particular
port, which allowed the dispatch test to connect to that port, as long
as no two tests ran simultaneously (which I don't think was ever guaranteed -
make -j can violate this). That's valid out-of-process, and also
fully-specified, so they only needed one <listen> directive, so the
CMake input only had one.

To make the tests work under CMake on Unix, there was a hack: the string
substituted for the content of the <listen> directive contained
</listen><listen> to get the other address in, which is pretty nasty.

Instead of doing that, I've made both build systems, on both Unix and
Windows, use both debug-pipe and a more normal transport (Unix or TCP).
debug-pipe has a Windows implementation and it's used in
dbus-spawn-win.c, so it'd better work. The use of debug-pipe is now
hard-coded rather than being a configure parameter (there's no reason
to vary it in different builds), and I used TEST_LISTEN as the name of the
Unix/TCP address, because it's a "vague" address (no specific Unix path, no
TCP port), that you can listen on but not connect to.

This in turn means that we can merge the Autoconf .in and CMake .cmake
files, similar to Bug #41033.

You might wonder why I've kept debug-pipe. I did try to get rid of it, but
it turns out that the tests in dispatch.c rely on
dbus_connection_open_private() not blocking, and normal socket
connections block on connect(). Until we fix that by adding an async
version of dbus_connection_open_private(), it won't be safe to have a
test like dispatch.c that "talks to itself", unless it uses a transport
as trivial as debug-pipe in which neither end has to block on the other.

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41222
2011-09-28 19:00:56 +01:00
..
.gitignore Ignore generated bus/org.freedesktop.dbus-session.plist 2010-12-15 09:43:11 +01:00
activation-exit-codes.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
activation-helper-bin.c Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
activation-helper.c activation helper: remove unused variable when not being verbose 2011-09-19 13:50:38 +01:00
activation-helper.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
activation.c Merge branch 'more-unused-39231' 2011-09-21 11:45:13 +01:00
activation.h activation: optionally, use systemd for system bus activation 2010-07-09 19:47:23 +02:00
bus.c Fix compilation on MSVC, which doesn't understand "inline" with its C99 meaning. 2011-08-13 22:08:26 +02:00
bus.h activation: optionally, use systemd for system bus activation 2010-07-09 19:47:23 +02:00
config-loader-expat.c Fixed gcc on windows limitation 2010-03-20 21:53:57 +01:00
config-loader-libxml.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
config-parser-common.c Do not use the name ELEMENT_TYPE 2011-03-07 13:50:38 +00:00
config-parser-common.h Do not use the name ELEMENT_TYPE 2011-03-07 13:50:38 +00:00
config-parser-trivial.c Fix spelling/grammatical mistakes detected by Debian's lintian(1) 2011-07-28 11:05:43 +01:00
config-parser-trivial.h Merge branch 'dbus-1.2' 2010-06-22 17:25:20 +01:00
config-parser.c config-parser: don't try to get CommonProgramFiles from the environment on Unix 2011-08-05 12:27:04 +01:00
config-parser.h Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
connection.c BusConnections: don't assert about BusConnectionData in functions that don't need it 2011-09-19 13:50:38 +01:00
connection.h BusConnections: add usage stats for well-known names, match rules 2011-06-24 16:01:06 +01:00
dbus.service.in systemd: ensure that the system bus is unlikely to be killed on OOM 2011-01-18 23:46:15 +01:00
dbus.socket.in systemd: enable the dbus service unconditionally 2010-09-06 03:21:17 +02:00
desktop-file.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
desktop-file.h activation: optionally, use systemd for system bus activation 2010-07-09 19:47:23 +02:00
dir-watch-default.c Fix warnings on Windows builds. 2010-04-14 08:26:40 +02:00
dir-watch-dnotify.c Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dir-watch-inotify.c DBusLoop: remove second layer of watch callbacks where possible 2011-06-13 16:09:50 +01:00
dir-watch-kqueue.c DBusLoop: remove second layer of watch callbacks where possible 2011-06-13 16:09:50 +01:00
dir-watch.h Clean up inotify watch handling 2010-02-01 16:22:56 -05:00
dispatch.c Merge tests' cmake and autotools bus configuration 2011-09-28 19:00:56 +01:00
dispatch.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
driver.c Fix an assortment of variables that aren't used when not checking/asserting 2011-09-19 13:50:38 +01:00
driver.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
expirelist.c DBusLoop: remove a layer of pointless abstraction around timeouts 2011-06-13 16:07:17 +01:00
expirelist.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
main.c Merge branch 'dbus-1.4' 2011-08-26 15:07:41 +01:00
Makefile.am bus: use AM_CPPFLAGS to simplify preprocessor invocation 2011-07-29 11:17:22 +01:00
messagebus-config.in Applied patches from cygwin port. 2010-08-10 08:25:24 +02:00
messagebus.in Fix use of $servicename in status 2010-07-09 11:52:59 -04:00
org.freedesktop.dbus-session.plist.in 10.4 is old so set more sensible launchd defaults. 2010-12-09 08:20:07 +01:00
policy.c bus_policy_test: remove stub 2011-09-19 15:05:39 +01:00
policy.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
rc.messagebus.in [legacy init script] Fix the use of $servicename 2010-04-23 12:02:19 -04:00
selinux.c capng: Drop supplemental groups when switching to daemon user 2011-08-11 10:54:45 +01:00
selinux.h Fix compilation in --disable-selinux case 2010-02-02 15:04:58 -05:00
services.c bus_registry_acquire_service: remove unnecessary variable 2011-09-19 13:50:38 +01:00
services.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
session.conf.in Use nonce-tcp default session bus on Windows 2009-12-01 09:25:59 +01:00
signals.c Do not allow eavedropping unless rule owner explicitely declare it 2011-07-11 17:03:20 +01:00
signals.h Do not allow eavedropping unless rule owner explicitely declare it 2011-07-11 17:03:20 +01:00
stats.c Fix compilation for removal of link cache 2011-07-29 10:46:27 +01:00
stats.h Add a stub .Debug.Stats interface if --enable-stats 2011-06-24 16:00:49 +01:00
system.conf.in Clean up and clarify default system policy 2008-12-18 15:34:24 -05:00
test-launch-helper.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
test-main.c bus_policy_test: remove stub 2011-09-19 15:05:39 +01:00
test-system.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
test.c Remove more never-used variables 2011-09-19 13:50:37 +01:00
test.h bus_policy_test: remove stub 2011-09-19 15:05:39 +01:00
utils.c Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
utils.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00