[Spice-devel] [PATCH spice-common] test-logging: unset G_MESSAGES_DEBUG

Marc-André Lureau marcandre.lureau at gmail.com
Thu Mar 10 14:45:43 UTC 2016


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>
---
 tests/test-logging.c | 1 +
 1 file changed, 1 insertion(+)

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,
-- 
2.5.0



More information about the Spice-devel mailing list