From: Marc-André Lureau Date: Wed, 9 Feb 2022 08:23:56 +0000 (+0400) Subject: test: enable AF_UNIX relay tests on !unix X-Git-Tag: dbus-1.15.0~26^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01b293027ee1b4be10cfd19f0cd1727fe7a1bef2;p=thirdparty%2Fdbus.git test: enable AF_UNIX relay tests on !unix Signed-off-by: Marc-André Lureau --- diff --git a/test/relay.c b/test/relay.c index 77a408498..8bddec8c5 100644 --- a/test/relay.c +++ b/test/relay.c @@ -129,9 +129,10 @@ setup (Fixture *f, dbus_error_init (&f->e); g_queue_init (&f->messages); - if ((g_str_has_prefix (address, "tcp:") || - g_str_has_prefix (address, "nonce-tcp:")) && - !test_check_tcp_works ()) + if ((g_str_has_prefix (address, "unix:") && !test_check_af_unix_works ()) || + ((g_str_has_prefix (address, "tcp:") || + g_str_has_prefix (address, "nonce-tcp:")) && + !test_check_tcp_works ())) { f->skip = TRUE; return; @@ -354,14 +355,12 @@ main (int argc, g_test_add ("/limit/tcp", Fixture, "tcp:host=127.0.0.1", setup, test_limit, teardown); -#ifdef DBUS_UNIX g_test_add ("/connect/unix", Fixture, unix_tmpdir, setup, test_connect, teardown); g_test_add ("/relay/unix", Fixture, unix_tmpdir, setup, test_relay, teardown); g_test_add ("/limit/unix", Fixture, unix_tmpdir, setup, test_limit, teardown); -#endif ret = g_test_run (); dbus_shutdown ();