From 88900545d4ada75c002d4a73b902d58f497e707e Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Tue, 25 Apr 2023 16:26:56 +0200 Subject: Only run test_overload.cpp when using the WASAPI backend --- test/test_overload_callback.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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 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; -- cgit v1.2.3