aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_device_changed_callback.cpp
diff options
context:
space:
mode:
authorPaul Adenot <[email protected]>2023-04-25 14:42:06 +0200
committerPaul Adenot <[email protected]>2023-04-26 14:28:46 +0200
commit2e0fe891062b6437ad26a75dd010d0b0247561f0 (patch)
tree5555cd37bc410408717920bcb24f07282c775426 /test/test_device_changed_callback.cpp
parent9517d4e837a6bc9f50c35bd7df57153fc002e5e0 (diff)
downloadcubeb-2e0fe891062b6437ad26a75dd010d0b0247561f0.tar.gz
cubeb-2e0fe891062b6437ad26a75dd010d0b0247561f0.zip
Prevent running test that make use of audio input streams on backends that don't implement it
Diffstat (limited to 'test/test_device_changed_callback.cpp')
-rw-r--r--test/test_device_changed_callback.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_device_changed_callback.cpp b/test/test_device_changed_callback.cpp
index d1e60a8..890ebd9 100644
--- a/test/test_device_changed_callback.cpp
+++ b/test/test_device_changed_callback.cpp
@@ -75,9 +75,14 @@ TEST(cubeb, device_changed_callbacks)
int r = CUBEB_OK;
uint32_t latency_frames = 0;
+
r = common_init(&ctx, "Cubeb duplex example with device change");
ASSERT_EQ(r, CUBEB_OK) << "Error initializing cubeb library";
+ if (!can_run_audio_input_test(ctx)) {
+ return;
+ }
+
std::unique_ptr<cubeb, decltype(&cubeb_destroy)>
cleanup_cubeb_at_exit(ctx, cubeb_destroy);