Commit 8d7c6287 authored by Wim Taymans's avatar Wim Taymans
Browse files

check/: Fix up the timeout so that the test does not fail.

Original commit message from CVS:
* check/gst/gstbus.c: (gstbus_suite):
* check/gst/gstdata.c: (thread_ref), (gst_data_suite):
* check/gstcheck.h:
Fix up the timeout so that the test does not fail.
parent 1b1f7c7e
2005-04-11 set REAL_NAME environment variable <set EMAIL_ADDRESS environment variable>
* check/gst/gstbus.c: (gstbus_suite):
* check/gst/gstdata.c: (thread_ref), (gst_data_suite):
* check/gstcheck.h:
Fix up the timeout so that the test does not fail.
2005-04-06 Wim Taymans <wim@fluendo.com> 2005-04-06 Wim Taymans <wim@fluendo.com>
* gst/base/README: * gst/base/README:
......
...@@ -105,7 +105,7 @@ gstbus_suite (void) ...@@ -105,7 +105,7 @@ gstbus_suite (void)
Suite *s = suite_create ("GstBus"); Suite *s = suite_create ("GstBus");
TCase *tc_chain = tcase_create ("stresstest"); TCase *tc_chain = tcase_create ("stresstest");
tcase_set_timeout (tc_chain, 0); tcase_set_timeout (tc_chain, 20);
suite_add_tcase (s, tc_chain); suite_add_tcase (s, tc_chain);
tcase_add_test (tc_chain, test_hammer_bus); tcase_add_test (tc_chain, test_hammer_bus);
......
...@@ -107,6 +107,7 @@ thread_ref (GstData * data) ...@@ -107,6 +107,7 @@ thread_ref (GstData * data)
if (j % num_threads == 0) if (j % num_threads == 0)
THREAD_SWITCH (); THREAD_SWITCH ();
} }
g_message ("thread stopped\n");
} }
START_TEST (test_ref_threaded) START_TEST (test_ref_threaded)
...@@ -169,6 +170,9 @@ gst_data_suite (void) ...@@ -169,6 +170,9 @@ gst_data_suite (void)
Suite *s = suite_create ("GstData"); Suite *s = suite_create ("GstData");
TCase *tc_chain = tcase_create ("general"); TCase *tc_chain = tcase_create ("general");
/* turn off timeout */
tcase_set_timeout (tc_chain, 20);
suite_add_tcase (s, tc_chain); suite_add_tcase (s, tc_chain);
tcase_add_test (tc_chain, test_copy); tcase_add_test (tc_chain, test_copy);
tcase_add_test (tc_chain, test_is_writable); tcase_add_test (tc_chain, test_is_writable);
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include <gst/gst.h> #include <gst/gst.h>
/* logging function for tests /* logging function for tests
* a test uses g_message() to log a debug line * a test uses g_message() to log a debug line
* a gst unit test can be run with GST_TEST_DEBUG env var set to see the * a gst unit test can be run with GST_TEST_DEBUG env var set to see the
......
...@@ -105,7 +105,7 @@ gstbus_suite (void) ...@@ -105,7 +105,7 @@ gstbus_suite (void)
Suite *s = suite_create ("GstBus"); Suite *s = suite_create ("GstBus");
TCase *tc_chain = tcase_create ("stresstest"); TCase *tc_chain = tcase_create ("stresstest");
tcase_set_timeout (tc_chain, 0); tcase_set_timeout (tc_chain, 20);
suite_add_tcase (s, tc_chain); suite_add_tcase (s, tc_chain);
tcase_add_test (tc_chain, test_hammer_bus); tcase_add_test (tc_chain, test_hammer_bus);
......
...@@ -107,6 +107,7 @@ thread_ref (GstData * data) ...@@ -107,6 +107,7 @@ thread_ref (GstData * data)
if (j % num_threads == 0) if (j % num_threads == 0)
THREAD_SWITCH (); THREAD_SWITCH ();
} }
g_message ("thread stopped\n");
} }
START_TEST (test_ref_threaded) START_TEST (test_ref_threaded)
...@@ -169,6 +170,9 @@ gst_data_suite (void) ...@@ -169,6 +170,9 @@ gst_data_suite (void)
Suite *s = suite_create ("GstData"); Suite *s = suite_create ("GstData");
TCase *tc_chain = tcase_create ("general"); TCase *tc_chain = tcase_create ("general");
/* turn off timeout */
tcase_set_timeout (tc_chain, 20);
suite_add_tcase (s, tc_chain); suite_add_tcase (s, tc_chain);
tcase_add_test (tc_chain, test_copy); tcase_add_test (tc_chain, test_copy);
tcase_add_test (tc_chain, test_is_writable); tcase_add_test (tc_chain, test_is_writable);
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include <gst/gst.h> #include <gst/gst.h>
/* logging function for tests /* logging function for tests
* a test uses g_message() to log a debug line * a test uses g_message() to log a debug line
* a gst unit test can be run with GST_TEST_DEBUG env var set to see the * a gst unit test can be run with GST_TEST_DEBUG env var set to see the
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment