summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2017-11-21 15:48:06 +0100
committerEdward Hervey <bilboed@bilboed.com>2017-12-01 10:51:26 +0100
commitbc77afb644ce2dc86d204991d211e423904765c2 (patch)
treec8e286180750162dedc1fccea9f7f6e50e7fdb68
parent865de199f159df4a04d09f36e35f2e4520da4375 (diff)
downloadgstreamer-plugins-bad-bc77afb644ce2dc86d204991d211e423904765c2.tar.gz
tests/srtp: Bump up timeout to 3mins for testcase
This involves generating and processing 65536 packets, let's give it time to actually complete that. And a bit of debug to track what's going on.
-rw-r--r--tests/check/elements/srtp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/check/elements/srtp.c b/tests/check/elements/srtp.c
index 37484a94f..a4d8b4d56 100644
--- a/tests/check/elements/srtp.c
+++ b/tests/check/elements/srtp.c
@@ -115,6 +115,9 @@ roc_check_probe (GstPad * pad, GstPadProbeInfo * info, gpointer user_data)
roc_check_data *data = user_data;
GstElement *e = GST_PAD_PARENT (pad);
+ if (G_UNLIKELY (data->counter % 8192 == 0))
+ GST_DEBUG_OBJECT (pad, "counter at %d", data->counter);
+
/* record first roc, then wait for 2^16 packets to pass */
if (data->counter == 0) {
data->start_roc = get_roc (e);
@@ -211,6 +214,7 @@ srtp_suite (void)
TCase *tc_chain = tcase_create ("general");
suite_add_tcase (s, tc_chain);
+ tcase_set_timeout (tc_chain, 180);
tcase_add_test (tc_chain, test_create_and_unref);
tcase_add_test (tc_chain, test_play);
tcase_add_test (tc_chain, test_roc);