This results in one less special case in test-main, which will be
significant when we want to make the tests more data-driven.
Signed-off-by: Simon McVittie <smcv@collabora.com>
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;
bus_context_unref (context);
+#else
+ _dbus_test_skip ("fd-passing not supported on this platform");
+#endif
return TRUE;
}
-#endif
#endif /* DBUS_ENABLE_EMBEDDED_TESTS */
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 ();
}
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