[grilo] tests: Remove GLIB_CHECK_VERSION check for unsupported version
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] tests: Remove GLIB_CHECK_VERSION check for unsupported version
- Date: Wed, 23 Sep 2015 13:33:54 +0000 (UTC)
commit 4d50af277d5f2dadbdef009fd60730eb5eae9b98
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]