summaryrefslogtreecommitdiffstats
path: root/tests/unit/test-qga.c
diff options
context:
space:
mode:
authorBin Meng2022-08-24 11:39:40 +0200
committerThomas Huth2022-08-25 15:16:13 +0200
commit3c239aa77ed19521992a0b14594907adc0d79a6c (patch)
treee798c032e6bb092cbd61d3e9b810dab725a45b94 /tests/unit/test-qga.c
parenttests/qtest: Use g_setenv() (diff)
downloadqemu-3c239aa77ed19521992a0b14594907adc0d79a6c.tar.gz
qemu-3c239aa77ed19521992a0b14594907adc0d79a6c.tar.xz
qemu-3c239aa77ed19521992a0b14594907adc0d79a6c.zip
tests/qtest: Use g_mkdtemp()
Windows does not provide a mkdtemp() API, but glib does. Replace mkdtemp() call with the glib version. Signed-off-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20220824094029.1634519-3-bmeng.cn@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/unit/test-qga.c')
-rw-r--r--tests/unit/test-qga.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test-qga.c b/tests/unit/test-qga.c
index b27c77a695..a05a4628ed 100644
--- a/tests/unit/test-qga.c
+++ b/tests/unit/test-qga.c
@@ -60,7 +60,7 @@ fixture_setup(TestFixture *fixture, gconstpointer data, gchar **envp)
fixture->loop = g_main_loop_new(NULL, FALSE);
fixture->test_dir = g_strdup("/tmp/qgatest.XXXXXX");
- g_assert_nonnull(mkdtemp(fixture->test_dir));
+ g_assert_nonnull(g_mkdtemp(fixture->test_dir));
path = g_build_filename(fixture->test_dir, "sock", NULL);
cwd = g_get_current_dir();