check/gst/gstevents.c: Fix error message output so I might be able to tell why the...
authorJan Schmidt <thaytan@mad.scientist.com>
Thu, 18 Aug 2005 15:47:16 +0000 (15:47 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Thu, 18 Aug 2005 15:47:16 +0000 (15:47 +0000)
Original commit message from CVS:
* check/gst/gstevents.c: (GST_START_TEST), (event_probe),
(test_event), (timediff), (gstevents_suite):
Fix error message output so I might be able to tell why the
test works here but fails on the build farm.

ChangeLog
check/gst/gstevents.c
tests/check/gst/gstevents.c

index 6c1ac9b..98b2b9d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2005-08-18  Jan Schmidt  <thaytan@mad.scientist.com>
 
+       * check/gst/gstevents.c: (GST_START_TEST), (event_probe),
+       (test_event), (timediff), (gstevents_suite):
+           Fix error message output so I might be able to tell why the
+          test works here but fails on the build farm.
+
+2005-08-18  Jan Schmidt  <thaytan@mad.scientist.com>
+
        * check/Makefile.am:
        * check/gst/gstevents.c: (GST_START_TEST), (event_probe),
        (test_event), (timediff), (gstevents_suite), (main):
index e4c507b..4356c26 100644 (file)
@@ -327,11 +327,13 @@ GST_START_TEST (send_custom_events)
    * to traverse the the queue */
   test_event (GST_EVENT_CUSTOM_DS, srcpad, FALSE);
   fail_unless (timediff (&got_event_time, &sent_event_time) >= G_USEC_PER_SEC,
-      "GST_EVENT_CUSTOM_BOTH_OOB arrived at sink too quickly for an in-band event");
+      "GST_EVENT_CUSTOM_DS arrived too quickly for an in-band event: %lld us",
+      timediff (&got_event_time, &sent_event_time));
 
   test_event (GST_EVENT_CUSTOM_BOTH, srcpad, FALSE);
   fail_unless (timediff (&got_event_time, &sent_event_time) >= G_USEC_PER_SEC,
-      "GST_EVENT_CUSTOM_BOTH_OOB arrived at sink too quickly for an in-band event");
+      "GST_EVENT_CUSTOM_BOTH arrived too quickly for an in-band event: %lld us",
+      timediff (&got_event_time, &sent_event_time));
 
   gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_NULL);
   gst_bin_watch_for_state_change (GST_BIN (pipeline));
index e4c507b..4356c26 100644 (file)
@@ -327,11 +327,13 @@ GST_START_TEST (send_custom_events)
    * to traverse the the queue */
   test_event (GST_EVENT_CUSTOM_DS, srcpad, FALSE);
   fail_unless (timediff (&got_event_time, &sent_event_time) >= G_USEC_PER_SEC,
-      "GST_EVENT_CUSTOM_BOTH_OOB arrived at sink too quickly for an in-band event");
+      "GST_EVENT_CUSTOM_DS arrived too quickly for an in-band event: %lld us",
+      timediff (&got_event_time, &sent_event_time));
 
   test_event (GST_EVENT_CUSTOM_BOTH, srcpad, FALSE);
   fail_unless (timediff (&got_event_time, &sent_event_time) >= G_USEC_PER_SEC,
-      "GST_EVENT_CUSTOM_BOTH_OOB arrived at sink too quickly for an in-band event");
+      "GST_EVENT_CUSTOM_BOTH arrived too quickly for an in-band event: %lld us",
+      timediff (&got_event_time, &sent_event_time));
 
   gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_NULL);
   gst_bin_watch_for_state_change (GST_BIN (pipeline));