summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2022-02-09 14:03:12 +0400
committerSimon McVittie <smcv@collabora.com>2022-07-15 16:26:54 +0100
commitd08973f6d312417a0be04a214b336b9bf0ddc7a3 (patch)
tree94405c3571da7f839cc722a77bd306f157f57126 /test
parent522cc62e023f6af0507ed52a459b26cdb962dd32 (diff)
downloaddbus-d08973f6d312417a0be04a214b336b9bf0ddc7a3.tar.gz
test: enable AF_UNIX server-oom test on !unix
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/internals/server-oom.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/internals/server-oom.c b/test/internals/server-oom.c
index 7414ece8..d1688416 100644
--- a/test/internals/server-oom.c
+++ b/test/internals/server-oom.c
@@ -94,6 +94,10 @@ test_oom_wrapper (gconstpointer data)
{
const OOMTestCase *test = data;
+ if (g_str_has_prefix (test->data, "unix:") &&
+ !test_check_af_unix_works ())
+ return;
+
if ((g_str_has_prefix (test->data, "tcp:") ||
g_str_has_prefix (test->data, "nonce-tcp:")) &&
!test_check_tcp_works ())
@@ -145,9 +149,7 @@ main (int argc,
add_oom_test ("/server/new-nonce-tcp", test_new_server, "nonce-tcp:host=127.0.0.1,bind=127.0.0.1");
add_oom_test ("/server/new-tcp-star", test_new_server, "tcp:host=127.0.0.1,bind=*");
add_oom_test ("/server/new-tcp-v4", test_new_server, "tcp:host=127.0.0.1,bind=127.0.0.1,family=ipv4");
-#ifdef DBUS_UNIX
add_oom_test ("/server/unix", test_new_server, unix_tmpdir);
-#endif
ret = g_test_run ();