mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-14 20:02:38 +00:00
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.
This commit is contained in:
parent
7e9e261fa6
commit
76ce2f77a4
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue