test: print actual timestamp on failure
authorStefan Sauer <ensonic@google.com>
Sat, 23 Jul 2011 11:46:31 +0000 (13:46 +0200)
committerStefan Sauer <ensonic@google.com>
Sat, 23 Jul 2011 12:04:14 +0000 (14:04 +0200)
tests/check/pipelines/basetime.c

index 2b84f9d..f08cd12 100644 (file)
@@ -46,7 +46,8 @@ buffer_probe_cb (GstPad * pad, GstBuffer * buffer)
 {
   if (old_ts != GST_CLOCK_TIME_NONE) {
     fail_unless (GST_BUFFER_TIMESTAMP (buffer) != old_ts,
-        "Two buffers had same timestamp");
+        "Two buffers had same timestamp: %" GST_TIME_FORMAT,
+        GST_TIME_ARGS (old_ts));
   }
   old_ts = GST_BUFFER_TIMESTAMP (buffer);