diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2016-03-10 15:45:43 +0100 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2016-03-10 14:47:39 +0000 |
commit | f06f699d7817354a532f091f46044720f9045887 (patch) | |
tree | e002ea8df2f443a7f8a21a4a192cb83e3b8e4224 | |
parent | fd9ba72f1a154249b039ebac9a38fe76b175cb7d (diff) | |
download | spice-common-f06f699d7817354a532f091f46044720f9045887.tar.gz spice-common-f06f699d7817354a532f091f46044720f9045887.tar.xz spice-common-f06f699d7817354a532f091f46044720f9045887.zip |
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@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
-rw-r--r-- | tests/test-logging.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, |