diff options
author | Paul Adenot <[email protected]> | 2023-04-25 16:26:56 +0200 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2023-04-26 14:28:46 +0200 |
commit | 88900545d4ada75c002d4a73b902d58f497e707e (patch) | |
tree | 32cc078a9576940100f6eaf0ceda04231416144c | |
parent | 0e7f41d6ef4579901faac04662780d1855b6b2ff (diff) | |
download | cubeb-88900545d4ada75c002d4a73b902d58f497e707e.tar.gz cubeb-88900545d4ada75c002d4a73b902d58f497e707e.zip |
Only run test_overload.cpp when using the WASAPI backend
-rw-r--r-- | test/test_overload_callback.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_overload_callback.cpp b/test/test_overload_callback.cpp index d62e1ba..c8f4daf 100644 --- a/test/test_overload_callback.cpp +++ b/test/test_overload_callback.cpp @@ -66,6 +66,12 @@ TEST(cubeb, overload_callback) std::unique_ptr<cubeb, decltype(&cubeb_destroy)> cleanup_cubeb_at_exit(ctx, cubeb_destroy); + // This test is specifically designed to test a behaviour of the WASAPI + // backend in a specific scenario. + if (strcmp(cubeb_get_backend_id(ctx), "wasapi") != 0) { + return; + } + output_params.format = STREAM_FORMAT; output_params.rate = 48000; output_params.channels = 2; |