diff options
author | Bin Meng | 2022-08-24 11:39:40 +0200 |
---|---|---|
committer | Thomas Huth | 2022-08-25 15:16:13 +0200 |
commit | 3c239aa77ed19521992a0b14594907adc0d79a6c (patch) | |
tree | e798c032e6bb092cbd61d3e9b810dab725a45b94 /tests/qtest/libqos | |
parent | tests/qtest: Use g_setenv() (diff) | |
download | qemu-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/qtest/libqos')
-rw-r--r-- | tests/qtest/libqos/virtio-9p.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qtest/libqos/virtio-9p.c b/tests/qtest/libqos/virtio-9p.c index 70aea8bf62..ae9b0a20e2 100644 --- a/tests/qtest/libqos/virtio-9p.c +++ b/tests/qtest/libqos/virtio-9p.c @@ -48,9 +48,9 @@ void virtio_9p_create_local_test_dir(void) */ char *template = concat_path(pwd, "qtest-9p-local-XXXXXX"); - local_test_path = mkdtemp(template); + local_test_path = g_mkdtemp(template); if (!local_test_path) { - g_test_message("mkdtemp('%s') failed: %s", template, strerror(errno)); + g_test_message("g_mkdtemp('%s') failed: %s", template, strerror(errno)); } g_assert(local_test_path != NULL); |