summaryrefslogtreecommitdiff
authorEdward Hervey <bilboed@bilboed.com>2011-02-10 17:51:08 (GMT)
committer Edward Hervey <bilboed@bilboed.com>2011-02-10 17:52:17 (GMT)
commit2eaa525c9ef9664ecff9bad46125e4dbeccf1919 (patch) (side-by-side diff)
tree48b7ebbe7fe71ee78e2f7b9b9a0972f7bf2b9236
parent40faf593f6ecfaf58a302c48070369c048453220 (diff)
downloadgnonlin-2eaa525c9ef9664ecff9bad46125e4dbeccf1919.zip
gnonlin-2eaa525c9ef9664ecff9bad46125e4dbeccf1919.tar.gz
tests: Small cleanup
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--tests/check/gnl/common.h10
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
@@ -93,9 +93,9 @@ compare_segments (Segment * segment, GstEvent * event)
}
fail_if (rate != segment->rate);
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);
GST_DEBUG ("Segment was valid, discarding expected Segment");
@@ -108,7 +108,7 @@ sinkpad_event_probe (GstPad * sinkpad, GstEvent * event, CollectStructure * coll
Segment * segment;
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;
if (compare_segments (segment, event)) {
@@ -271,7 +271,7 @@ new_operation (const gchar * name, const gchar * factory, guint64 start, gint64
GstElement * operation = NULL;
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);
g_object_set (G_OBJECT (gnloperation),
"start", start,