diff options
author | Paul Adenot <[email protected]> | 2023-11-21 10:30:01 +0100 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2023-11-21 10:32:57 +0100 |
commit | e29dbe31950c0431d178137a308e260c920f7247 (patch) | |
tree | a1f868328ad191c0161b5fcea1d3b6b7030cce73 | |
parent | 8baede3d8c4a037c1fc0a7862b6744e1b3c68a58 (diff) | |
download | cubeb-fix-tests.tar.gz cubeb-fix-tests.zip |
Relax a single test_sanity.cpp assertion when using OpenSLfix-tests
-rw-r--r-- | test/test_sanity.cpp | 6 |
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); |