[Spice-devel] [PATCH spice-common] test-logging: unset G_MESSAGES_DEBUG
Christophe Fergeau
cfergeau at redhat.com
Thu Mar 10 14:53:55 UTC 2016
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 at redhat.com>
Christophe
>
> 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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160310/1b9d5518/attachment.sig>
More information about the Spice-devel
mailing list