aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_ring_buffer.cpp
diff options
context:
space:
mode:
authorMatthew Gregan <[email protected]>2016-12-02 09:09:18 +1300
committerMatthew Gregan <[email protected]>2016-12-02 09:09:18 +1300
commitd9e0a8ff289385f7bb13a0a327f0799da99cea41 (patch)
tree24fb21ed96b98021bc6c118b72e4175460453ed9 /test/test_ring_buffer.cpp
parent27aa05e4272b8f4d826c3df5b14871977d77b97f (diff)
downloadcubeb-d9e0a8ff289385f7bb13a0a327f0799da99cea41.tar.gz
cubeb-d9e0a8ff289385f7bb13a0a327f0799da99cea41.zip
Fix loop in multi-threaded ring_buffer test so the test actually runs.
Diffstat (limited to 'test/test_ring_buffer.cpp')
-rw-r--r--test/test_ring_buffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_ring_buffer.cpp b/test/test_ring_buffer.cpp
index 3c63cde..3dd73a6 100644
--- a/test/test_ring_buffer.cpp
+++ b/test/test_ring_buffer.cpp
@@ -196,7 +196,7 @@ TEST(cubeb, ring_buffer)
}
/* Multi thread testing */
- for (size_t channels = max_channels; channels < min_channels; channels++) {
+ for (size_t channels = min_channels; channels < max_channels; channels++) {
/* Use non power-of-two numbers to catch edge-cases. */
for (size_t capacity_frames = min_capacity;
capacity_frames < max_capacity; capacity_frames+=capacity_increment) {