diff options
Diffstat (limited to 'tests/test-vmstate.c')
-rw-r--r-- | tests/test-vmstate.c | 2 |
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); |