Browse Source

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
pull/193/head
Thomas Guillem 4 months ago
committed by Jean-Baptiste Kempf
parent
commit
b0c038f24f
  1. 6
      test/src/player/abloop.c

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

Loading…
Cancel
Save