GQueue messages;
int fd_before;
+ DBusInitialFDs *initial_fds;
} Fixture;
static void oom (const gchar *doing) G_GNUC_NORETURN;
if (f->skip)
return;
+ f->initial_fds = _dbus_check_fdleaks_enter ();
+
g_assert (f->left_server_conn == NULL);
g_assert (f->right_server_conn == NULL);
if (f->fd_before >= 0 && close (f->fd_before) < 0)
g_error ("%s", g_strerror (errno));
#endif
+
+ /* TODO: It would be nice if we could ask GLib which test-case
+ * we're currently in */
+ if (f->initial_fds != NULL)
+ _dbus_check_fdleaks_leave (f->initial_fds, "next test-case");
}
int