From 76ce2f77a4bd6324e6c441f2ce35e415871b8524 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 15 Mar 2024 12:25:30 +0100 Subject: [PATCH] test: handle running without a server The security context test requires a running server, exit gracefully for now when there is server running, like in the CI. --- src/tests/test-security-context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/test-security-context.c b/src/tests/test-security-context.c index 50a8a11d0..c95814510 100644 --- a/src/tests/test-security-context.c +++ b/src/tests/test-security-context.c @@ -103,6 +103,8 @@ static void test_create(void) context = pw_context_new(pw_main_loop_get_loop(loop), NULL, 12); spa_assert_se(context != NULL); core = pw_context_connect(context, NULL, 0); + if (core == NULL && errno == EHOSTDOWN) + return; spa_assert_se(core != NULL); spa_zero(info);