tests/check/generic/sinks.c: Put back the tcase_set_timeout(), apparently it's needed after all; fix it up in a way t...

Original commit message from CVS:
* tests/check/generic/sinks.c: (gst_sinks_suite):
Put back the tcase_set_timeout(), apparently it's needed after
all; fix it up in a way that makes things work with valgrind too.
This commit is contained in:
Tim-Philipp Müller 2007-12-30 13:31:17 +00:00
parent 7e8415cdf1
commit 34cdb9b9d2
2 changed files with 21 additions and 1 deletions

View file

@ -1,7 +1,20 @@
2007-12-30 Tim-Philipp Müller <tim at centricular dot net>
* tests/check/generic/sinks.c: (gst_sinks_suite):
Put back the tcase_set_timeout(), apparently it's needed after
all; fix it up in a way that makes things work with valgrind too.
2007-12-30 Tim-Philipp Müller <tim at centricular dot net>
* gst/gst_private.h: (STRUCTURE_ESTIMATED_STRING_LEN):
* gst/gstcaps.c: (gst_caps_to_string):
* gst/gststructure.c: (GST_ASCII_IS_STRING),
(priv_gst_structure_append_to_gstring), (gst_structure_to_string):
2007-12-30 Thijs Vermeir <thijsvermeir@gmail.com>
* gst/gstdebugutils.c:
add warning when failed to open file for writing
Add warning when failed to open file for writing.
2007-12-28 Tim-Philipp Müller <tim at centricular dot net>

View file

@ -1249,6 +1249,13 @@ gst_sinks_suite (void)
{
Suite *s = suite_create ("Sinks");
TCase *tc_chain = tcase_create ("general");
guint timeout = 10;
/* time out after 10s, not the default 3, we need this for the last test.
* We need a longer timeout when running under valgrind though. */
if (g_getenv ("CK_DEFAULT_TIMEOUT") != NULL)
timeout = MAX (10, atoi (g_getenv ("CK_DEFAULT_TIMEOUT")));
tcase_set_timeout (tc_chain, timeout);
suite_add_tcase (s, tc_chain);
tcase_add_test (tc_chain, test_sink);