[Spice-commits] tests/test-logging.c

Christophe Fergau teuf at kemper.freedesktop.org
Thu Mar 31 12:54:40 UTC 2016


 tests/test-logging.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 6c7552d54369ced08a9b2c61587cad44c04d4ab9
Author: Christophe Fergeau <cfergeau at redhat.com>
Date:   Thu Mar 31 13:34:43 2016 +0200

    tests: Fix glib version check
    
    The glib version checks were using #ifdef GLIB_CHECK_VERSION() rather
    than  #if GLIB_CHECK_VERSION()

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);


More information about the Spice-commits mailing list