Port: Use g_setenv instead of setenv
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 17 Feb 2017 20:11:16 +0000 (15:11 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 9 Jun 2017 20:58:15 +0000 (16:58 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/lib/test_plugin.c

index 603eb29bc79ed6b79baa416ee43d48ec62f8538b..d4390dcbe0bd1aca195231babc9e9dd68ae818e0 100644 (file)
@@ -275,7 +275,7 @@ static void test_find(const char *plugin_dir)
        assert(plugin_path);
        sprintf(plugin_path, "%s:/ec1d09e5-696c-442e-b1c3-f9c6cf7f5958:::%s:8db46494-a398-466a-9649-c765ae077629:",
                NON_EXISTING_PATH, plugin_dir);
-       setenv("BABELTRACE_PLUGIN_PATH", plugin_path, 1);
+       g_setenv("BABELTRACE_PLUGIN_PATH", plugin_path, 1);
        plugin = bt_plugin_find("test_minimal");
        ok(plugin,
                "bt_plugin_find() succeeds with a plugin name it can find");
This page took 0.029945 seconds and 4 git commands to generate.