diff options
author | Paul Adenot <[email protected]> | 2023-04-25 14:42:06 +0200 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2023-04-26 14:28:46 +0200 |
commit | 2e0fe891062b6437ad26a75dd010d0b0247561f0 (patch) | |
tree | 5555cd37bc410408717920bcb24f07282c775426 /test/test_device_changed_callback.cpp | |
parent | 9517d4e837a6bc9f50c35bd7df57153fc002e5e0 (diff) | |
download | cubeb-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.cpp | 5 |
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); |