g_assert_cmpint (errno, ==, EBADF);
g_assert (!res);
g_assert_error (error, G_UNIX_ERROR, 0);
+ g_clear_error (&error);
}
static gboolean sig_received = FALSE;
g_timeout_add (500, exit_mainloop, mainloop);
g_main_loop_run (mainloop);
g_assert (!sig_received);
+ g_main_loop_unref (mainloop);
}
g_source_remove (id);
kill (getpid (), SIGHUP);
g_assert (!sig_received);
+ g_main_loop_unref (mainloop);
}