diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2016-03-31 13:34:43 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2016-03-31 13:34:43 +0200 |
commit | 6c7552d54369ced08a9b2c61587cad44c04d4ab9 (patch) | |
tree | a71a09caf559e9f9d07e4cfd7d261c582822fb5d | |
parent | 55ec59679878e5e6bd097a9fa674ac506d592928 (diff) |
tests: Fix glib version check
The glib version checks were using #ifdef GLIB_CHECK_VERSION() rather
than #if GLIB_CHECK_VERSION()
-rw-r--r-- | tests/test-logging.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-logging.c b/tests/test-logging.c index c02905f..cb929f9 100644 --- a/tests/test-logging.c +++ b/tests/test-logging.c @@ -43,7 +43,7 @@ LOG_OTHER_HELPER(message, MESSAGE) LOG_OTHER_HELPER(warning, WARNING) LOG_OTHER_HELPER(critical, CRITICAL) -#ifdef GLIB_CHECK_VERSION(2,38,0) +#if GLIB_CHECK_VERSION(2,38,0) /* Checks that spice_warning() aborts after changing SPICE_ABORT_LEVEL */ static void test_spice_abort_level(void) { @@ -401,7 +401,7 @@ int main(int argc, char **argv) * test cases are going to test */ g_log_set_always_fatal(fatal_mask & G_LOG_LEVEL_MASK); -#ifdef GLIB_CHECK_VERSION(2,38,0) +#if GLIB_CHECK_VERSION(2,38,0) g_test_add_func("/spice-common/spice-abort-level", test_spice_abort_level); g_test_add_func("/spice-common/spice-abort-level-gwarning", test_spice_abort_level_g_warning); g_test_add_func("/spice-common/spice-debug-level", test_spice_debug_level); |