check/: Fix up the timeout so that the test does not fail.
authorWim Taymans <wim.taymans@gmail.com>
Mon, 11 Apr 2005 11:24:53 +0000 (11:24 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Mon, 11 Apr 2005 11:24:53 +0000 (11:24 +0000)
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.

ChangeLog
check/gst/gstbus.c
check/gst/gstdata.c
check/gstcheck.h
tests/check/gst/gstbus.c
tests/check/gst/gstdata.c
tests/check/gstcheck.h

index 85615ed..57f2f9c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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>
 
        * gst/base/README:
index 9d28bc9..6bf8525 100644 (file)
@@ -105,7 +105,7 @@ gstbus_suite (void)
   Suite *s = suite_create ("GstBus");
   TCase *tc_chain = tcase_create ("stresstest");
 
-  tcase_set_timeout (tc_chain, 0);
+  tcase_set_timeout (tc_chain, 20);
 
   suite_add_tcase (s, tc_chain);
   tcase_add_test (tc_chain, test_hammer_bus);
index 59c931e..ccf1815 100644 (file)
@@ -107,6 +107,7 @@ thread_ref (GstData * data)
     if (j % num_threads == 0)
       THREAD_SWITCH ();
   }
+  g_message ("thread stopped\n");
 }
 
 START_TEST (test_ref_threaded)
@@ -169,6 +170,9 @@ gst_data_suite (void)
   Suite *s = suite_create ("GstData");
   TCase *tc_chain = tcase_create ("general");
 
+  /* turn off timeout */
+  tcase_set_timeout (tc_chain, 20);
+
   suite_add_tcase (s, tc_chain);
   tcase_add_test (tc_chain, test_copy);
   tcase_add_test (tc_chain, test_is_writable);
index ce452eb..729acec 100644 (file)
@@ -31,7 +31,6 @@
 
 #include <gst/gst.h>
 
-
 /* logging function for tests
  * 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
index 9d28bc9..6bf8525 100644 (file)
@@ -105,7 +105,7 @@ gstbus_suite (void)
   Suite *s = suite_create ("GstBus");
   TCase *tc_chain = tcase_create ("stresstest");
 
-  tcase_set_timeout (tc_chain, 0);
+  tcase_set_timeout (tc_chain, 20);
 
   suite_add_tcase (s, tc_chain);
   tcase_add_test (tc_chain, test_hammer_bus);
index 59c931e..ccf1815 100644 (file)
@@ -107,6 +107,7 @@ thread_ref (GstData * data)
     if (j % num_threads == 0)
       THREAD_SWITCH ();
   }
+  g_message ("thread stopped\n");
 }
 
 START_TEST (test_ref_threaded)
@@ -169,6 +170,9 @@ gst_data_suite (void)
   Suite *s = suite_create ("GstData");
   TCase *tc_chain = tcase_create ("general");
 
+  /* turn off timeout */
+  tcase_set_timeout (tc_chain, 20);
+
   suite_add_tcase (s, tc_chain);
   tcase_add_test (tc_chain, test_copy);
   tcase_add_test (tc_chain, test_is_writable);
index ce452eb..729acec 100644 (file)
@@ -31,7 +31,6 @@
 
 #include <gst/gst.h>
 
-
 /* logging function for tests
  * 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