[cogl] test-utils: Use g_setenv instead of setenv
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl] test-utils: Use g_setenv instead of setenv
- Date: Mon, 19 Sep 2011 16:54:30 +0000 (UTC)
commit f7b24d88f41f67781972ccccee4a111edacbbb6a
Author: Neil Roberts <neil linux intel com>
Date: Mon Sep 19 13:40:28 2011 +0100
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>
tests/conform/test-utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/conform/test-utils.c b/tests/conform/test-utils.c
index 651e4ef..b765b46 100644
--- a/tests/conform/test-utils.c
+++ b/tests/conform/test-utils.c
@@ -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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]