diff --git a/bus/dispatch.c b/bus/dispatch.c index b17d0ad2..e91a8255 100644 --- a/bus/dispatch.c +++ b/bus/dispatch.c @@ -5098,11 +5098,10 @@ bus_dispatch_sha1_test (const char *test_data_dir_cstr) return TRUE; } -#ifdef HAVE_UNIX_FD_PASSING - dbus_bool_t bus_unix_fds_passing_test (const char *test_data_dir_cstr) { +#ifdef HAVE_UNIX_FD_PASSING DBusString test_data_dir; BusContext *context; DBusConnection *foo, *bar; @@ -5248,8 +5247,10 @@ bus_unix_fds_passing_test (const char *test_data_dir_cstr) bus_context_unref (context); +#else + _dbus_test_skip ("fd-passing not supported on this platform"); +#endif return TRUE; } -#endif #endif /* DBUS_ENABLE_EMBEDDED_TESTS */ diff --git a/bus/test-main.c b/bus/test-main.c index 0a4d6db0..c9ef184d 100644 --- a/bus/test-main.c +++ b/bus/test-main.c @@ -120,12 +120,7 @@ main (int argc, char **argv) test_one ("dispatch", bus_dispatch_test, dir); test_one ("activation-service-reload", bus_activation_service_reload_test, dir); - -#ifdef HAVE_UNIX_FD_PASSING test_one ("unix-fds-passing", bus_unix_fds_passing_test, dir); -#else - _dbus_test_skip ("fd-passing not supported on this platform"); -#endif return _dbus_test_done_testing (); } diff --git a/bus/test.h b/bus/test.h index 61367542..b80a3d76 100644 --- a/bus/test.h +++ b/bus/test.h @@ -50,10 +50,7 @@ void bus_test_run_clients_loop (dbus_bool_t block); void bus_test_run_everything (BusContext *context); BusContext* bus_context_new_test (const DBusString *test_data_dir, const char *filename); - -#ifdef HAVE_UNIX_FD_PASSING dbus_bool_t bus_unix_fds_passing_test (const char *test_data_dir_cstr); -#endif #endif