aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_callback_ret.cpp5
-rw-r--r--test/test_logging.cpp5
2 files changed, 8 insertions, 2 deletions
diff --git a/test/test_callback_ret.cpp b/test/test_callback_ret.cpp
index a9d9a40..0737b60 100644
--- a/test/test_callback_ret.cpp
+++ b/test/test_callback_ret.cpp
@@ -181,7 +181,10 @@ run_test_callback(test_direction direction, cubeb_data_callback data_cb,
output_params = input_params;
r = cubeb_get_min_latency(ctx, &input_params, &latency_frames);
- ASSERT_EQ(r, CUBEB_OK) << "Could not get minimal latency";
+ if (r != CUBEB_OK) {
+ // not fatal
+ latency_frames = 1024;
+ }
switch (direction) {
case INPUT_ONLY:
diff --git a/test/test_logging.cpp b/test/test_logging.cpp
index fef8e20..54ff718 100644
--- a/test/test_logging.cpp
+++ b/test/test_logging.cpp
@@ -106,7 +106,10 @@ TEST(cubeb, logging)
output_params.prefs = CUBEB_STREAM_PREF_NONE;
r = cubeb_get_min_latency(ctx, &output_params, &latency_frames);
- ASSERT_EQ(r, CUBEB_OK) << "Could not get minimal latency";
+ if (r != CUBEB_OK) {
+ // not fatal
+ latency_frames = 1024;
+ }
r = cubeb_stream_init(ctx, &stream, "Cubeb logging", NULL, NULL, NULL,
&output_params, latency_frames, data_cb_load, state_cb,