Skip to content

Commit

Permalink
Relax a single test_sanity.cpp assertion when using OpenSL
Browse files Browse the repository at this point in the history
  • Loading branch information
padenot committed Nov 21, 2023
1 parent 33531e3 commit 54217bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/test_sanity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 54217bc

Please sign in to comment.