1
0
Fork 0

test-utils: Use g_setenv instead of setenv

Apparently there is no setenv function on Windows so it's more
portable to use g_setenv instead.

Reviewed-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
Neil Roberts 2011-09-19 13:40:28 +01:00 committed by Robert Bragg
parent 671a4dfb34
commit f7b24d88f4

View file

@ -24,7 +24,7 @@ test_utils_init (TestUtilsGTestFixture *fixture,
"$ make test-report");
counter++;
setenv ("COGL_X11_SYNC", "1", 0);
g_setenv ("COGL_X11_SYNC", "1", 0);
state->ctx = cogl_context_new (NULL, &error);
if (!state->ctx)