diff --git a/tests/modules/si-audio-adapter.c b/tests/modules/si-audio-adapter.c index 5d06eabc..c064418e 100644 --- a/tests/modules/si-audio-adapter.c +++ b/tests/modules/si-audio-adapter.c @@ -37,6 +37,10 @@ test_si_audio_adapter_setup (TestFixture * f, gconstpointer user_data) g_assert_cmpint (pw_context_add_spa_lib (f->base.server.context, "audiotestsrc", "audiotestsrc/libspa-audiotestsrc"), ==, 0); + if (!test_is_spa_lib_installed (&f->base, "audiotestsrc")) { + g_test_skip ("The pipewire audiotestsrc factory was not found"); + return; + } g_assert_nonnull (pw_context_load_module (f->base.server.context, "libpipewire-module-spa-node-factory", NULL, NULL)); g_assert_nonnull (pw_context_load_module (f->base.server.context, diff --git a/tests/modules/si-node.c b/tests/modules/si-node.c index 5c07a8a3..d0eb3b0c 100644 --- a/tests/modules/si-node.c +++ b/tests/modules/si-node.c @@ -45,6 +45,10 @@ test_si_node_setup (TestFixture * f, gconstpointer user_data) g_assert_cmpint (pw_context_add_spa_lib (f->base.server.context, "audiotestsrc", "audiotestsrc/libspa-audiotestsrc"), ==, 0); + if (!test_is_spa_lib_installed (&f->base, "audiotestsrc")) { + g_test_skip ("The pipewire audiotestsrc factory was not found"); + return; + } g_assert_nonnull (pw_context_load_module (f->base.server.context, "libpipewire-module-spa-node-factory", NULL, NULL)); } diff --git a/tests/modules/si-standard-link.c b/tests/modules/si-standard-link.c index 0dcc098e..7bcbc770 100644 --- a/tests/modules/si-standard-link.c +++ b/tests/modules/si-standard-link.c @@ -90,6 +90,10 @@ test_si_standard_link_setup (TestFixture * f, gconstpointer user_data) g_assert_cmpint (pw_context_add_spa_lib (f->base.server.context, "audiotestsrc", "audiotestsrc/libspa-audiotestsrc"), ==, 0); + if (!test_is_spa_lib_installed (&f->base, "audiotestsrc")) { + g_test_skip ("The pipewire audiotestsrc factory was not found"); + return; + } g_assert_nonnull (pw_context_load_module (f->base.server.context, "libpipewire-module-adapter", NULL, NULL)); g_assert_nonnull (pw_context_load_module (f->base.server.context, diff --git a/tests/wp/object-manager.c b/tests/wp/object-manager.c index bb0bbb34..b984914e 100644 --- a/tests/wp/object-manager.c +++ b/tests/wp/object-manager.c @@ -66,6 +66,10 @@ test_om_interest_on_pw_props (TestFixture *f, gconstpointer user_data) g_assert_cmpint (pw_context_add_spa_lib (f->base.server.context, "audiotestsrc", "audiotestsrc/libspa-audiotestsrc"), ==, 0); + if (!test_is_spa_lib_installed (&f->base, "audiotestsrc")) { + g_test_skip ("The pipewire audiotestsrc factory was not found"); + return; + } g_assert_nonnull (pw_context_load_module (f->base.server.context, "libpipewire-module-adapter", NULL, NULL)); } diff --git a/tests/wp/proxy.c b/tests/wp/proxy.c index 5c2b18cc..3a44606d 100644 --- a/tests/wp/proxy.c +++ b/tests/wp/proxy.c @@ -263,6 +263,10 @@ test_enum_params_error (TestFixture *f, gconstpointer data) g_assert_cmpint (pw_context_add_spa_lib (f->base.server.context, "audiotestsrc", "audiotestsrc/libspa-audiotestsrc"), ==, 0); + if (!test_is_spa_lib_installed (&f->base, "audiotestsrc")) { + g_test_skip ("The pipewire audiotestsrc factory was not found"); + return; + } g_assert_nonnull (pw_context_load_module (f->base.server.context, "libpipewire-module-adapter", NULL, NULL)); }