summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2015-09-23 12:59:43 +0200
committerBastien Nocera <hadess@hadess.net>2015-09-23 12:59:43 +0200
commit4d50af277d5f2dadbdef009fd60730eb5eae9b98 (patch)
tree4840a815aa66aa79440dcc22628e66079f861127 /tests
parentcd9871c0a1cdb8fcc3a1b7a748e7c117d6547d94 (diff)
downloadgrilo-4d50af277d5f2dadbdef009fd60730eb5eae9b98.tar.gz
tests: Remove GLIB_CHECK_VERSION check for unsupported version
Diffstat (limited to 'tests')
-rw-r--r--tests/registry.c4
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);