aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorMatthew Gregan <[email protected]>2018-03-27 17:48:59 +1300
committerMatthew Gregan <[email protected]>2018-03-27 17:48:59 +1300
commit57b4d6b454ecf4d564dbf92c61ac091d0556935f (patch)
tree53fb88a1425c3303c7d04a8782888386eba0cb48 /test
parent7401fc25a9d87ed57d49648883e3e5658305c1cb (diff)
downloadcubeb-57b4d6b454ecf4d564dbf92c61ac091d0556935f.tar.gz
cubeb-57b4d6b454ecf4d564dbf92c61ac091d0556935f.zip
Initialize cubeb_stream_params.prefs field in more tests to avoid random failures.
Diffstat (limited to 'test')
-rw-r--r--test/test_duplex.cpp2
-rw-r--r--test/test_loopback.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/test/test_duplex.cpp b/test/test_duplex.cpp
index 4aac345..9fb3e8f 100644
--- a/test/test_duplex.cpp
+++ b/test/test_duplex.cpp
@@ -159,10 +159,12 @@ TEST(cubeb, duplex_collection_change)
input_params.rate = 48000;
input_params.channels = 1;
input_params.layout = CUBEB_LAYOUT_MONO;
+ input_params.prefs = CUBEB_STREAM_PREF_NONE;
output_params.format = STREAM_FORMAT;
output_params.rate = 48000;
output_params.channels = 2;
output_params.layout = CUBEB_LAYOUT_STEREO;
+ 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";
diff --git a/test/test_loopback.cpp b/test/test_loopback.cpp
index 41624b7..260eb31 100644
--- a/test/test_loopback.cpp
+++ b/test/test_loopback.cpp
@@ -348,6 +348,7 @@ void run_loopback_separate_streams_test(bool is_float)
output_params.rate = SAMPLE_FREQUENCY;
output_params.channels = 1;
output_params.layout = CUBEB_LAYOUT_MONO;
+ output_params.prefs = CUBEB_STREAM_PREF_NONE;
std::unique_ptr<user_state_loopback> user_data(new user_state_loopback());
ASSERT_TRUE(!!user_data) << "Error allocating user data";
@@ -515,6 +516,7 @@ void run_loopback_device_selection_test(bool is_float)
output_params.rate = SAMPLE_FREQUENCY;
output_params.channels = 1;
output_params.layout = CUBEB_LAYOUT_MONO;
+ output_params.prefs = CUBEB_STREAM_PREF_NONE;
std::unique_ptr<user_state_loopback> user_data(new user_state_loopback());
ASSERT_TRUE(!!user_data) << "Error allocating user data";