diff options
author | Edward Hervey <bilboed@bilboed.com> | 2011-02-10 18:51:08 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2011-02-10 18:52:17 +0100 |
commit | 2eaa525c9ef9664ecff9bad46125e4dbeccf1919 (patch) | |
tree | 48b7ebbe7fe71ee78e2f7b9b9a0972f7bf2b9236 | |
parent | 40faf593f6ecfaf58a302c48070369c048453220 (diff) |
tests: Small cleanup
-rw-r--r-- | tests/check/gnl/common.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/check/gnl/common.h b/tests/check/gnl/common.h index 6ee967d..f13b315 100644 --- a/tests/check/gnl/common.h +++ b/tests/check/gnl/common.h @@ -95,5 +95,5 @@ compare_segments (Segment * segment, GstEvent * event) fail_if (format != segment->format); - fail_if (start != segment->start); - fail_if (stop != segment->stop); - fail_if (position != segment->position); + fail_unless_equals_int64 (start, segment->start); + fail_unless_equals_int64 (stop, segment->stop); + fail_unless_equals_int64 (position, segment->position); @@ -110,3 +110,3 @@ sinkpad_event_probe (GstPad * sinkpad, GstEvent * event, CollectStructure * coll if (GST_EVENT_TYPE (event) == GST_EVENT_NEWSEGMENT) { - fail_if (collect->expected_segments == NULL); + fail_if (collect->expected_segments == NULL, "Received unexpected segment"); segment = (Segment *) collect->expected_segments->data; @@ -273,3 +273,3 @@ new_operation (const gchar * name, const gchar * factory, guint64 start, gint64 operation = gst_element_factory_make_or_warn (factory, NULL); - gnloperation = gst_element_factory_make_or_warn ("gnloperation", NULL); + gnloperation = gst_element_factory_make_or_warn ("gnloperation", name); |