From 20e685b1708f74c0d5f1205049453aae4e15969e Mon Sep 17 00:00:00 2001 From: Lars Immisch Date: Tue, 21 Nov 2023 22:38:47 +0100 Subject: [PATCH] Make the test more lenient. --- test/aupos.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/aupos.c b/test/aupos.c index 9cd159a97..4ff40868d 100644 --- a/test/aupos.c +++ b/test/aupos.c @@ -34,7 +34,8 @@ int test_auposition(void) err = aufile_read(af, buffer, &size); TEST_ERR(err); - TEST_EQUALS(0, size); + /* It's possible we read data up to a ms */ + TEST_ASSERT(size < 16); af = mem_deref(af); @@ -50,7 +51,7 @@ int test_auposition(void) /* 30 ms should be left, at 8000Hz/s, one channels and 16 bit samples that's 480 bytes */ - TEST_EQUALS(480, size); + TEST_ASSERT(size - 480 < 16); out: