Relax a single test_sanity.cpp assertion when using OpenSL

This commit is contained in:
Paul Adenot 2023-11-21 10:30:01 +01:00
parent 8baede3d8c
commit e29dbe3195

View file

@ -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);