From b0c038f24fa4294cb8e2cbce885a1eadfd717606 Mon Sep 17 00:00:00 2001 From: Thomas Guillem Date: Mon, 15 Dec 2025 07:14:03 +0100 Subject: [PATCH] test: player: abloop: fix spurius failure Check for a minimum of seek count. The test waited for a given seek count then stopped, but we can't control how long the player is continuing to play and if it will hit a last abloop during the small stopping time lapse. Fixes #29503 --- test/src/player/abloop.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/src/player/abloop.c b/test/src/player/abloop.c index fd23ec72ce..d2c7aeb8ca 100644 --- a/test/src/player/abloop.c +++ b/test/src/player/abloop.c @@ -115,7 +115,11 @@ test_abloop_scenario(struct ctx *ctx, const struct abloop_scenario *scenario) } seek_count++; } - assert(seek_count == scenario->seek_count); + + if (scenario->wait_stopped) + assert(seek_count == scenario->seek_count); + else + assert(seek_count >= scenario->seek_count); test_end(ctx); player_remove_timer(player, &timer);