check/gst/gstevents.c: Fix error message output so I might be able to tell why the test works here but fails on the b...

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.
This commit is contained in:
Jan Schmidt 2005-08-18 15:47:16 +00:00
parent 8377afc0ba
commit f651422287
3 changed files with 15 additions and 4 deletions

View file

@ -1,3 +1,10 @@
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:

View 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));

View 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));