diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libqtest.c | 2 | ||||
-rw-r--r-- | tests/test-crypto-tlscredsx509.c | 2 | ||||
-rw-r--r-- | tests/test-crypto-tlssession.c | 2 | ||||
-rw-r--r-- | tests/test-io-channel-tls.c | 2 | ||||
-rw-r--r-- | tests/test-vmstate.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/tests/libqtest.c b/tests/libqtest.c index 91e9cb220c..f36e30a4de 100644 --- a/tests/libqtest.c +++ b/tests/libqtest.c @@ -254,7 +254,7 @@ QTestState *qtest_init_without_qmp_handshake(const char *extra_args) s->expected_status = 0; s->qemu_pid = fork(); if (s->qemu_pid == 0) { - setenv("QEMU_AUDIO_DRV", "none", true); + g_setenv("QEMU_AUDIO_DRV", "none", true); execlp("/bin/sh", "sh", "-c", command, NULL); exit(1); } diff --git a/tests/test-crypto-tlscredsx509.c b/tests/test-crypto-tlscredsx509.c index a27efb7540..f487349c32 100644 --- a/tests/test-crypto-tlscredsx509.c +++ b/tests/test-crypto-tlscredsx509.c @@ -141,7 +141,7 @@ int main(int argc, char **argv) module_call_init(MODULE_INIT_QOM); g_test_init(&argc, &argv, NULL); - setenv("GNUTLS_FORCE_FIPS_MODE", "2", 1); + g_setenv("GNUTLS_FORCE_FIPS_MODE", "2", 1); mkdir(WORKDIR, 0700); diff --git a/tests/test-crypto-tlssession.c b/tests/test-crypto-tlssession.c index 6560d7134f..8b2453fa79 100644 --- a/tests/test-crypto-tlssession.c +++ b/tests/test-crypto-tlssession.c @@ -398,7 +398,7 @@ int main(int argc, char **argv) module_call_init(MODULE_INIT_QOM); g_test_init(&argc, &argv, NULL); - setenv("GNUTLS_FORCE_FIPS_MODE", "2", 1); + g_setenv("GNUTLS_FORCE_FIPS_MODE", "2", 1); mkdir(WORKDIR, 0700); diff --git a/tests/test-io-channel-tls.c b/tests/test-io-channel-tls.c index 3c9ef6f941..ad7554c534 100644 --- a/tests/test-io-channel-tls.c +++ b/tests/test-io-channel-tls.c @@ -273,7 +273,7 @@ int main(int argc, char **argv) module_call_init(MODULE_INIT_QOM); g_test_init(&argc, &argv, NULL); - setenv("GNUTLS_FORCE_FIPS_MODE", "2", 1); + g_setenv("GNUTLS_FORCE_FIPS_MODE", "2", 1); mkdir(WORKDIR, 0700); 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); |