From 1b11ec676e003bc4d6bad11cd0357f727c0124fc Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 28 Nov 2016 14:11:27 +0100 Subject: [PATCH] check/pipeline: Make failure message more informative This will provide maybe a bit more insight the next time it fails --- tests/check/gst/gstpipeline.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/check/gst/gstpipeline.c b/tests/check/gst/gstpipeline.c index d186bc7f0a..0745d57818 100644 --- a/tests/check/gst/gstpipeline.c +++ b/tests/check/gst/gstpipeline.c @@ -615,7 +615,9 @@ GST_START_TEST (test_pipeline_reset_start_time) /* We waited 50ms, so the position should be now >= 50ms */ fail_unless (gst_element_query_position (fakesink, GST_FORMAT_TIME, &position)); - fail_unless (position >= 50 * GST_MSECOND); + fail_unless (position >= 50 * GST_MSECOND, + "Pipeline position is not at least 50millisecond (reported %" + G_GUINT64_FORMAT " nanoseconds)", position); fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_PAUSED), GST_STATE_CHANGE_ASYNC);