aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorPaul Adenot <[email protected]>2023-11-21 10:30:01 +0100
committerPaul Adenot <[email protected]>2023-11-21 11:08:34 +0100
commit54217bca3f3e0cd53c073690a23dd25d83557909 (patch)
treea1f868328ad191c0161b5fcea1d3b6b7030cce73 /test
parent33531e337aa1db72005d20a131ba9a8f2ce821cc (diff)
downloadcubeb-54217bca3f3e0cd53c073690a23dd25d83557909.tar.gz
cubeb-54217bca3f3e0cd53c073690a23dd25d83557909.zip
Relax a single test_sanity.cpp assertion when using OpenSL
Diffstat (limited to 'test')
-rw-r--r--test/test_sanity.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_sanity.cpp b/test/test_sanity.cpp
index 6468531..17d3c54 100644
--- a/test/test_sanity.cpp
+++ b/test/test_sanity.cpp
@@ -564,7 +564,11 @@ TEST(cubeb, stream_position)
r = cubeb_stream_get_position(stream, &position);
ASSERT_EQ(r, CUBEB_OK);
- ASSERT_EQ(position, last_position);
+ // The OpenSL backend performs client-side interpolation for its position and
+ // its drain implementation isn't very accurate.
+ if (strcmp(cubeb_get_backend_id(ctx), "opensl")) {
+ ASSERT_EQ(position, last_position);
+ }
cubeb_stream_destroy(stream);
cubeb_destroy(ctx);