[grilo/0.2.x] tests: Remove GLIB_CHECK_VERSION check for unsupported version
- From: Juan A. Suárez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo/0.2.x] tests: Remove GLIB_CHECK_VERSION check for unsupported version
- Date: Sat, 19 Dec 2015 11:26:04 +0000 (UTC)
commit 0aa74471e7c56657201d5aee936178a97562427c
Author: Bastien Nocera <hadess hadess net>
Date: Wed Sep 23 12:59:43 2015 +0200
tests: Remove GLIB_CHECK_VERSION check for unsupported version
tests/registry.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/tests/registry.c b/tests/registry.c
index 79aca90..0326597 100644
--- a/tests/registry.c
+++ b/tests/registry.c
@@ -30,7 +30,6 @@
#define CHECK_MESSAGE(domain, error_message) \
(g_strcmp0 (log_domain, domain) == 0 && strstr (message, error_message))
-#if GLIB_CHECK_VERSION(2,22,0)
static gboolean
registry_load_error_handler (const gchar *log_domain,
GLogLevelFlags log_level,
@@ -47,7 +46,6 @@ registry_load_error_handler (const gchar *log_domain,
return TRUE;
}
-#endif
typedef struct {
GrlRegistry *registry;
@@ -57,9 +55,7 @@ typedef struct {
static void
registry_fixture_setup (RegistryFixture *fixture, gconstpointer data)
{
-#if GLIB_CHECK_VERSION(2,22,0)
g_test_log_set_fatal_handler (registry_load_error_handler, NULL);
-#endif
fixture->registry = grl_registry_get_default ();
fixture->loop = g_main_loop_new (NULL, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]