check: Add a debug status to the systemclock test
authorJan Schmidt <thaytan@noraisin.net>
Sat, 14 Nov 2009 22:35:07 +0000 (22:35 +0000)
committerJan Schmidt <thaytan@noraisin.net>
Mon, 16 Nov 2009 18:29:01 +0000 (18:29 +0000)
Next time it fails on a buildbot we can see which clock id
return it is getting.

tests/check/gst/gstsystemclock.c

index ba0a2a3..712e394 100644 (file)
@@ -395,7 +395,7 @@ GST_START_TEST (test_async_sync_interaction)
     /* While this is sleeping, the async3 id should fire and unschedule it */
     result = gst_clock_id_wait (td.sync_id, &jitter);
     fail_unless (result == GST_CLOCK_UNSCHEDULED || result == GST_CLOCK_EARLY,
-        "Waiting did not return UNSCHEDULED");
+        "Waiting did not return UNSCHEDULED (was %d)", result);
 
     gst_clock_id_unschedule (td.async_id3);
     g_mutex_lock (td.lock);