summaryrefslogtreecommitdiff
path: root/dbus/dbus-transport-unix.c
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2018-09-28 17:06:00 +0100
committerSimon McVittie <smcv@collabora.com>2019-01-21 15:22:07 +0000
commit0296c1fcbf23047e04dc306a7aaf6e9682af6eaf (patch)
treed93af10b4ec295ef8ff5391129d4da19bac127d5 /dbus/dbus-transport-unix.c
parentd9dfe4ee3edf5ebf75e075c424d4f385651506a7 (diff)
downloaddbus-0296c1fcbf23047e04dc306a7aaf6e9682af6eaf.tar.gz
test: Move _dbus_transport_unix_test() here
This requires exposing _dbus_connection_get_address() as an internal symbol, but that seems worth it. Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'dbus/dbus-transport-unix.c')
-rw-r--r--dbus/dbus-transport-unix.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/dbus/dbus-transport-unix.c b/dbus/dbus-transport-unix.c
index 1989c9bb..30c3ba44 100644
--- a/dbus/dbus-transport-unix.c
+++ b/dbus/dbus-transport-unix.c
@@ -407,32 +407,3 @@ _dbus_transport_open_platform_specific (DBusAddressEntry *entry,
}
/** @} */
-
-#ifdef DBUS_ENABLE_EMBEDDED_TESTS
-
-dbus_bool_t
-_dbus_transport_unix_test (const char *test_data_dir _DBUS_GNUC_UNUSED)
-{
- DBusConnection *c;
- DBusError error;
- dbus_bool_t ret;
- const char *address;
-
- dbus_error_init (&error);
-
- c = dbus_connection_open ("unixexec:argv0=false,argv1=foobar,path=/bin/false", &error);
- _dbus_assert (c != NULL);
- _dbus_assert (!dbus_error_is_set (&error));
-
- address = _dbus_connection_get_address (c);
- _dbus_assert (address != NULL);
-
- /* Let's see if the address got parsed, reordered and formatted correctly */
- ret = strcmp (address, "unixexec:path=/bin/false,argv0=false,argv1=foobar") == 0;
-
- dbus_connection_unref (c);
-
- return ret;
-}
-
-#endif