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

Frediano Ziglio fziglio at kemper.freedesktop.org
Thu Mar 10 14:48:13 UTC 2016


 tests/test-logging.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit f06f699d7817354a532f091f46044720f9045887
Author: Marc-André Lureau <marcandre.lureau at gmail.com>
Date:   Thu Mar 10 15:45:43 2016 +0100

    test-logging: unset G_MESSAGES_DEBUG
    
    This test is sensitive to G_MESSAGES_DEBUG variable. Make it insensitive
    by unsetting the environment variable.
    
    Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
    Acked-by: Frediano Ziglio <fziglio at redhat.com>

diff --git a/tests/test-logging.c b/tests/test-logging.c
index 008ce48..94e923a 100644
--- a/tests/test-logging.c
+++ b/tests/test-logging.c
@@ -262,6 +262,7 @@ static void test_log_levels(void)
 static void test_spice_debug_level(void)
 {
     if (g_test_subprocess()) {
+        g_unsetenv("G_MESSAGES_DEBUG");
         g_setenv("SPICE_DEBUG_LEVEL", "5", TRUE);
         g_test_expect_message(NULL,
                               G_LOG_LEVEL_WARNING,


More information about the Spice-commits mailing list