diff options
author | Paul Adenot <[email protected]> | 2023-04-25 16:41:15 +0200 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2023-04-26 14:28:46 +0200 |
commit | 1ba923736487443f5c7be09bdb6bb894f9ee9d06 (patch) | |
tree | afe4ed53ad371110005d2949118e5ad81a364c2b /test/test_duplex.cpp | |
parent | 88900545d4ada75c002d4a73b902d58f497e707e (diff) | |
download | cubeb-1ba923736487443f5c7be09bdb6bb894f9ee9d06.tar.gz cubeb-1ba923736487443f5c7be09bdb6bb894f9ee9d06.zip |
Skip a couple more tests when a backend can't use audio input
Diffstat (limited to 'test/test_duplex.cpp')
-rw-r--r-- | test/test_duplex.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_duplex.cpp b/test/test_duplex.cpp index 81efcd3..1eb661e 100644 --- a/test/test_duplex.cpp +++ b/test/test_duplex.cpp @@ -204,15 +204,17 @@ TEST(cubeb, duplex_collection_change_no_unregister) r = common_init(&ctx, "Cubeb duplex example with collection change"); ASSERT_EQ(r, CUBEB_OK) << "Error initializing cubeb library"; - std::unique_ptr<cubeb, decltype(&cubeb_destroy)> cleanup_cubeb_at_exit( - ctx, [](cubeb * p) noexcept { EXPECT_DEATH(cubeb_destroy(p), ""); }); /* This test needs an available input device, skip it if this host does not * have one. */ if (!can_run_audio_input_test(ctx)) { + cubeb_destroy(ctx); return; } + std::unique_ptr<cubeb, decltype(&cubeb_destroy)> cleanup_cubeb_at_exit( + ctx, [](cubeb * p) noexcept { EXPECT_DEATH(cubeb_destroy(p), ""); }); + duplex_collection_change_impl(ctx); } |