fail_unless (time2 == GST_TIME_AS_MSECONDS (time));
}
-GST_END_TEST
+GST_END_TEST;
+
GST_START_TEST (test_signedness)
{
GstClockTime time[] = { 0, 1, G_MAXUINT64 / GST_SECOND };
}
}
-GST_END_TEST
+GST_END_TEST;
+
#define TIME_UNIT (GST_SECOND / 5)
- static void
+static void
gst_clock_debug (GstClock * clock)
{
GstClockTime time;
g_usleep (TIME_UNIT / (2 * 1000));
}
-GST_END_TEST
+GST_END_TEST;
+
GST_START_TEST (test_periodic_shot)
{
GstClock *clock;
gst_clock_id_unref (id);
}
-GST_END_TEST
+GST_END_TEST;
+
GST_START_TEST (test_async_order)
{
GstClock *clock;
g_list_free (cb_list);
}
-GST_END_TEST
+GST_END_TEST;
+
GST_START_TEST (test_periodic_multi)
{
GstClock *clock;
fail_unless (gst_clock_get_time (clock) < base + 4 * TIME_UNIT);
}
-GST_END_TEST
+GST_END_TEST;
+
GST_START_TEST (test_diff)
{
GstClockTime time1[] = { 0, (GstClockTime) - 1, 0, 1, 2 * GST_SECOND,
}
}
-GST_END_TEST
+GST_END_TEST;
+
/* test if a blocking wait, unblocked by an async entry continues to be
* scheduled */
- typedef struct
+typedef struct
{
GstClock *clock;
GstClockID id;
gst_object_unref (info.clock);
}
-GST_END_TEST Suite *
+GST_END_TEST;
+
+static Suite *
gst_systemclock_suite (void)
{
Suite *s = suite_create ("GstSystemClock");