aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_callback_ret.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_callback_ret.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_callback_ret.cpp')
-rw-r--r--test/test_callback_ret.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_callback_ret.cpp b/test/test_callback_ret.cpp
index 7ce33d0..49676f7 100644
--- a/test/test_callback_ret.cpp
+++ b/test/test_callback_ret.cpp
@@ -158,9 +158,9 @@ void run_test_callback(test_direction direction,
cleanup_cubeb_at_exit(ctx, cubeb_destroy);
if ((direction == INPUT_ONLY || direction == DUPLEX) &&
- !has_available_input_device(ctx)) {
+ !can_run_audio_input_test(ctx)) {
/* This test needs an available input device, skip it if this host does not
- * have one. */
+ * have one or if the backend doesn't implement input. */
return;
}