[vlc-commits] test: player timer: check it really does something

Francois Cartegnie git at videolan.org
Mon Dec 14 09:31:19 UTC 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Dec 11 14:35:08 2020 +0100| [6005c8c7478ac88ad02964b6f0172d9eb447ba53] | committer: Francois Cartegnie

test: player timer: check it really does something

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6005c8c7478ac88ad02964b6f0172d9eb447ba53
---

 test/src/player/player.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/src/player/player.c b/test/src/player/player.c
index 57e1bbbdfa..704b3f8b4d 100644
--- a/test/src/player/player.c
+++ b/test/src/player/player.c
@@ -2301,6 +2301,8 @@ test_timers_playback(struct ctx *ctx, struct timer_state timers[],
         struct timer_state *timer = &timers[timer_idx];
         vec_report_timer *vec = &timer->vec;
 
+        assert(vec->size > 1);
+
         for (size_t i = 1; i < vec->size; ++i)
         {
             struct report_timer *prev_report = &vec->data[i - 1];
@@ -2362,6 +2364,7 @@ test_timers_playback(struct ctx *ctx, struct timer_state timers[],
 
         /* It should not receive all update points */
         assert(vec->size < MAX_UPDATE_COUNT);
+        assert(vec->size > 1);
 
         for (size_t i = 1; i < vec->size; ++i)
         {



More information about the vlc-commits mailing list