On Thu, Mar 10, 2016 at 03:45:43PM +0100, Marc-André Lureau wrote: > This test is sensitive to G_MESSAGES_DEBUG variable. Make it insensitive > by unsetting the environment variable. I would just unset it in main(). Acked-by: Christophe Fergeau <cfergeau@xxxxxxxxxx> Christophe > > Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx> > --- > 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 >
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel