aboutsummaryrefslogtreecommitdiff
path: root/tests/test-vmstate.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-12-11 15:23:28 +0100
committerThomas Huth <thuth@redhat.com>2019-12-17 09:05:23 +0100
commite468ffdc6d3b1c7127b785eb73a1f5c94751fb01 (patch)
tree9db94e956b8932b6b1a89ca26ab63ade56559287 /tests/test-vmstate.c
parente858e04dd400744a93d453e97b33f9eaee2dabec (diff)
glib: use portable g_setenv()
We have a setenv() wrapper in os-win32.c that no one is actually using. Drop it and change to g_setenv() uniformly. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <1576074210-52834-7-git-send-email-pbonzini@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/test-vmstate.c')
-rw-r--r--tests/test-vmstate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-vmstate.c b/tests/test-vmstate.c
index 1e5be1d4ff..8f184f3556 100644
--- a/tests/test-vmstate.c
+++ b/tests/test-vmstate.c
@@ -1325,7 +1325,7 @@ int main(int argc, char **argv)
module_call_init(MODULE_INIT_QOM);
- setenv("QTEST_SILENT_ERRORS", "1", 1);
+ g_setenv("QTEST_SILENT_ERRORS", "1", 1);
g_test_init(&argc, &argv, NULL);
g_test_add_func("/vmstate/simple/primitive", test_simple_primitive);