[Spice-devel] [spice-common] tests: Fix glib version check
Christophe Fergeau
cfergeau at redhat.com
Thu Mar 31 11:35:27 UTC 2016
The glib version checks were using #ifdef GLIB_CHECK_VERSION() rather
than #if GLIB_CHECK_VERSION()
---
tests/test-logging.c | 4 ++--
1 file 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);
--
2.5.5
More information about the Spice-devel
mailing list