tests/srtp: Bump up timeout to 3mins for testcase
authorEdward Hervey <edward@centricular.com>
Tue, 21 Nov 2017 14:48:06 +0000 (15:48 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 21 Nov 2017 14:48:06 +0000 (15:48 +0100)
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.

tests/check/elements/srtp.c

index 37484a9..a4d8b4d 100644 (file)
@@ -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);