diff options
author | Marvin Schmidt <marv@exherbo.org> | 2009-10-14 18:58:06 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-10-15 06:03:17 +0200 |
commit | 2543d9c28c005fea83ed7d45ea69b5a2c53a1e28 (patch) | |
tree | 3d291b9db6b23ef502be9f79429e4f07d92b4071 /tests/check | |
parent | 88884cfddbfdb238f39e19a000292aa031c39fd6 (diff) |
flvmux: Use loop test to prevent timeout on slow machines
Partially fixes bug #597739.
Diffstat (limited to 'tests/check')
-rw-r--r-- | tests/check/elements/flvmux.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/check/elements/flvmux.c b/tests/check/elements/flvmux.c index 5df3e13b..6930ac71 100644 --- a/tests/check/elements/flvmux.c +++ b/tests/check/elements/flvmux.c @@ -139,14 +139,9 @@ mux_pcm_audio (guint num_buffers, guint repeat) GST_START_TEST (test_index_writing) { - guint bufs; - /* note: there's a magic 128 value in flvmux when doing index writing */ - for (bufs = 1; bufs < 500; bufs += 33) { - mux_pcm_audio (bufs, 2); - } - - gst_task_cleanup_all (); + if ((__i__ % 33) == 1) + mux_pcm_audio (__i__, 2); } GST_END_TEST; @@ -158,7 +153,7 @@ flvmux_suite (void) TCase *tc_chain = tcase_create ("general"); suite_add_tcase (s, tc_chain); - tcase_add_test (tc_chain, test_index_writing); + tcase_add_loop_test (tc_chain, test_index_writing, 1, 499); return s; } |