Re: [spice-common] tests: Fix glib version check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ack,
Pavel

On Thu, 2016-03-31 at 13:35 +0200, Christophe Fergeau wrote:
> 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);
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]