mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-07 01:50:18 +01:00
test: enable AF_UNIX relay tests on !unix
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
03dac62937
commit
01b293027e
1 changed files with 4 additions and 5 deletions
|
|
@ -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 ();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue