+GST_START_TEST (test_aggregate_gap)
+{
+ GThread *thread;
+
+ ChainData data = { 0, };
+ TestData test = { 0, };
+
+ _test_data_init (&test, FALSE);
+ _chain_data_init (&data, test.aggregator);
+
+ data.event = gst_event_new_gap (TEST_GAP_PTS, TEST_GAP_DURATION);
+
+ thread = g_thread_try_new ("gst-check", push_event, &data, NULL);
+
+ g_main_loop_run (test.ml);
+ g_source_remove (test.timeout_id);
+
+ /* these will return immediately as when the data is popped the threads are
+ * unlocked and will terminate */
+ g_thread_join (thread);
+
+ _chain_data_clear (&data);
+ _test_data_clear (&test);
+}
+
+GST_END_TEST;
+